softsusy is hosted by Hepforge, IPPP Durham
SOFTSUSY  4.1
tensor.h File Reference

three-index tensor for containing information on R-parity violating couplings. Also contains linear algebra functions for interaction with matrices and vectors. More...

#include <iostream>
#include <cmath>
#include <fstream>
#include "linalg.h"

Go to the source code of this file.

Classes

class  Tensor
 Three-index tensor for containing information on RPV couplings. More...
 

Functions

ostream & operator<< (ostream &left, const Tensor &)
 
Tensor operator* (double, const Tensor &)
 Multiplies all matrices in tensor by a double.
 
Tensor operator* (const DoubleMatrix &, const Tensor &)
 \( T^{kij} = M_{il} T^{klj} \)
 
Tensor outerProduct (const DoubleVector &, const DoubleMatrix &, int)
 
DoubleMatrix matrixify (const Tensor &, const Tensor &)
 \( M_{ij} = A^{ikl} B^{jlk} \)
 
DoubleMatrix sumProd (const Tensor &A, const Tensor &B)
 

Detailed Description

three-index tensor for containing information on R-parity violating couplings. Also contains linear algebra functions for interaction with matrices and vectors.

Function Documentation

◆ outerProduct()

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.