updated the notebook and minor bug fixes in utils

This commit is contained in:
Rowan Cockett
2013-08-30 22:23:14 -07:00
parent b66c63759d
commit c0efb972a9
4 changed files with 32 additions and 41 deletions
+10 -10
View File
@@ -8,21 +8,21 @@ from utils import ndgrid, mkvc
class TensorMesh(BaseMesh, TensorView, DiffOperators, InnerProducts):
"""
TensorMesh is a mesh class that deals with tensor product meshes.
TensorMesh is a mesh class that deals with tensor product meshes.
Any Mesh that has a constant width along the entire axis
such that it can defined by a single width vector, called 'h'.
Any Mesh that has a constant width along the entire axis
such that it can defined by a single width vector, called 'h'.
::
::
hx = np.array([1,1,1])
hy = np.array([1,2])
hz = np.array([1,1,1,1])
hx = np.array([1,1,1])
hy = np.array([1,2])
hz = np.array([1,1,1,1])
mesh = TensorMesh([hx, hy, hz])
mesh = TensorMesh([hx, hy, hz])
.. math::
x^2 = 5
.. math::
x^2 = 5
"""
_meshType = 'TENSOR'
+1 -1
View File
@@ -1,6 +1,6 @@
import numpy as np
from scipy import sparse as sp
from utils import mkvc, ndgrid, sub2ind
from matutils import mkvc, ndgrid, sub2ind
from sputils import sdiag
+1 -1
View File
@@ -1,5 +1,5 @@
from scipy import sparse as sp
from utils import mkvc
from matutils import mkvc
def sdiag(h):
File diff suppressed because one or more lines are too long