42 #if !defined(Intrepid_MiniTensor_TensorBase_h) 43 #define Intrepid_MiniTensor_TensorBase_h 50 #include "Intrepid_MiniTensor_Definitions.h" 51 #include "Intrepid_MiniTensor_Storage.h" 52 #include "Intrepid_MiniTensor_Utilities.h" 59 enum ComponentValue {ZEROS, ONES, RANDOM};
84 TensorBase(Index
const dimension, Index
const order);
92 TensorBase(Index
const dimension, Index
const order, ComponentValue value);
100 TensorBase(Index
const dimension, Index
const order, T
const & s);
108 TensorBase(Index
const dimension, Index
const order, T
const * data_ptr);
159 fill(ComponentValue value);
166 fill(T
const * data_ptr);
241 template<
typename R,
typename S,
typename T>
248 template<
typename R,
typename S,
typename T>
276 template<
typename R,
typename S,
typename T>
283 template<
typename R,
typename S,
typename T>
289 #include "Intrepid_MiniTensor_TensorBase.i.h" 290 #include "Intrepid_MiniTensor_TensorBase.t.h" 292 #endif //Intrepid_MiniTensor_TensorBase_h void set_dimension(Index const dimension)
Index get_dimension() const
TensorBase< T > & operator=(TensorBase< T > const &X)
T const & operator[](Index const i) const
Index get_number_components() const
void fill(ComponentValue value)
virtual Index get_order() const =0
void set_number_components(Index const number_components)
TensorBase< T > & operator-=(TensorBase< T > const &X)
TensorBase< T > & operator+=(TensorBase< T > const &X)
MiniTensor::StorageRCPArray< T > components_