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.
Tensor elements can be any objects on which the standard arithmetic
operations are defined. However, eigenvalue calculation is supported only
for float elements.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Scientific.Geometry.Vector
|
asVector(self)
Returns:
an equivalent vector object |
|
|
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
|
|
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 |
|
|