| Home | Trees | Indices | Help |
|
|---|
|
|
|
|||
|
Tensor Tensor in 3D space Constructor: Tensor([[xx, xy, xz], [yx, yy, yz], [zx, zy, zz]]) Tensors support the usual arithmetic operations ('t1', 't2': tensors, 'v': vector, 's': scalar): - 't1+t2' (addition) - 't1-t2' (subtraction) - 't1*t2' (tensorial (outer) product) - 't1*v' (contraction with a vector, same as t1.dot(v.asTensor())) - 's*t1', 't1*s' (multiplication with a scalar) - 't1/s' (division by a scalar) The coordinates can be extracted by indexing; a tensor of rank N can be indexed like an array of dimension N. |
||
|
|||
|
isTensor(x) Return 1 if |x| is a tensor. |
||
|
|||
|
_undocumented = 1
|
||
|
delta = Tensor([[1 0 0] [0 1 0] [0 0 1]])
|
||
|
epsilon = Tensor([[[ 0 0 0] [ 0 0 1] [ 0 -1 0]] [[ 0 0 -1] [ 0...
|
||
|
|||
|
|
|||
_undocumentedNone
|
deltaNone
|
epsilonNone
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0alpha3 on Fri Nov 2 14:06:00 2007 | http://epydoc.sourceforge.net |