20 #ifndef __mast_material_point_storage_h__ 21 #define __mast_material_point_storage_h__ 33 namespace MaterialPoint {
36 template <
typename ScalarType, u
int_t NComponents>
42 using view_t = Eigen::Map<typename Eigen::Matrix<scalar_t, NComponents, 1>>;
109 return view_t(
_data + NComponents*pt, NComponents, 1);
119 return view_t(
_data + NComponents*pt, NComponents, 1);
135 #endif // __mast_material_point_storage_h__
const scalar_t * data() const
Eigen::Map< typename Eigen::Matrix< scalar_t, NComponents, 1 > > view_t
const view_t data(uint_t pt) const
#define Assert0(cond, msg)
void init(uint_t n_points)
initializes the storage for n_points with NComponents data on each point