SOFTSUSY
4.1
|
#include "tensor.h"
Functions | |
ostream & | operator<< (ostream &left, const Tensor &T) |
Tensor | outerProduct (const DoubleVector &V, const DoubleMatrix &M, int l) |
DoubleMatrix | matrixify (const Tensor &A, const Tensor &B) |
\( M_{ij} = A^{ikl} B^{jlk} \) | |
DoubleMatrix | sumProd (const Tensor &A, const Tensor &B) |
Tensor | operator* (double f, const Tensor &M) |
Multiplies all matrices in tensor by a double. | |
Tensor | operator* (const DoubleMatrix &M, const Tensor &T) |
\( T^{kij} = M_{il} T^{klj} \) | |
Tensor outerProduct | ( | const DoubleVector & | V, |
const DoubleMatrix & | M, | ||
int | l | ||
) |
Make a tensor out of a vector and a matrix. l labels the position the vector index goes in. After that, indices are cyclic.