Home | Trees | Indices | Help |
|
---|
|
Tensor in 3D space
Tensors support the usual arithmetic operations ('t1', 't2': tensors, 'v': vector, 's': scalar):The coordinates can be extracted by indexing; a tensor of rank N can be indexed like an array of dimension N.
Tensors are immutable, i.e. their elements cannot be changed.
Tensor elements can be any objects on which the standard arithmetic operations are defined. However, eigenvalue calculation is supported only for float elements.
|
|||
__add__(self, other) | |||
__cmp__(self, other) | |||
__div__(self, other) | |||
__getitem__(self, index) | |||
__init__(self, elements, nocheck=None) | |||
__len__(self) | |||
__mul__(self, other) | |||
__neg__(self) | |||
__radd__(self, other) | |||
__rdiv__(self, other) | |||
__repr__(self) | |||
__rmul__(self, other) | |||
__rsub__(self, other) | |||
__str__(self) | |||
__sub__(self, other) | |||
Scientific.Geometry.Vector |
asVector(self) Returns an equivalent vector object |
||
Tensor |
asymmetricalPart(self) Returns the asymmetrical part of the tensor |
||
diagonal(self, axis1=0, axis2=1) | |||
(Numeric.array , Tensor)
|
diagonalization(self) Returns the eigenvalues of the tensor and a tensor representing the rotation matrix to the diagonal form |
||
Tensor |
dot(self,
other) Returns the contraction with other |
||
Numeric.array
|
eigenvalues(self) Returns the eigenvalues of the tensor |
||
Tensor |
inverse(self) Returns the inverse of the tensor |
||
Tensor |
symmetricalPart(self) Returns the symmetrical part of the tensor |
||
type of tensor elements |
trace(self,
axis1=0,
axis2=1) Returns the trace of the tensor |
||
Tensor |
transpose(self) Returns the transposed (index reversed) tensor |
|
|||
is_tensor = 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
is_tensor
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0alpha3 on Fri Oct 6 14:45:43 2006 | http://epydoc.sourceforge.net |