1 #ifndef EMM_2PackedSymmetricTensors_H 2 #define EMM_2PackedSymmetricTensors_H 70 inline static SP::EMM_2PackedSymmetricTensors
New() {
94 return (i>=j)?(*this)[index][j+i*(i+1)/2]:(*
this)[index][i+j*(j+1)/2];
105 return (i>=j)?(*this)[index][j+i*(i+1)/2]:(*
this)[index][i+j*(j+1)/2];
142 return (dim*(dim+1)/2);
virtual const tReal & operator()(const tUIndex &index, const tUSInt &i, const tUSInt &j) const
get the values at index i,j of the tensor at index
Definition: EMM_2PackedSymmetricTensors.h:93
virtual tUSInt getTensorSize() const
get thememory size of the storage of each tensor
Definition: EMM_2PackedSymmetricTensors.h:140
#define tUSInt
Definition: types.h:28
#define tBoolean
Definition: types.h:139
virtual SP::EMM_Tensors NewInstance() const
create a new instance
Definition: EMM_2PackedSymmetricTensors.h:80
static SP::EMM_2PackedSymmetricTensors New()
builds a full tensor
Definition: EMM_2PackedSymmetricTensors.h:70
virtual ~EMM_2PackedSymmetricTensors(void)
destroy
Definition: EMM_2PackedSymmetricTensors.cpp:13
const tUSInt & getDimension() const
get the dimension of the tensor
Definition: EMM_Tensors.h:252
This class describes a morse array of symmetric tensors of 2 order in packed form.
Definition: EMM_2PackedSymmetricTensors.h:20
EMM_2PackedSymmetricTensors()
create a 2 order tensor
Definition: EMM_2PackedSymmetricTensors.cpp:7
virtual tReal & operator()(const tUIndex &index, const tUSInt &i, const tUSInt &j)
get the values at index i,j of the tensor at index
Definition: EMM_2PackedSymmetricTensors.h:104
#define tUIndex
Definition: types.h:126
DEFINE_SPTR(EMM_2PackedSymmetricTensors)
This class describes a morse array of tensors of 2 order.
Definition: EMM_2Tensors.h:17
void product(const tUIndex &nCells, const tUSInt &dim, const tBoolean &incS, const tReal *sigmas, const tReal *M, tReal *H) const
Definition: EMM_2PackedSymmetricTensors.cpp:17
#define tReal
Definition: types.h:118
SP_OBJECT(EMM_2PackedSymmetricTensors)
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:141