11 #include "eteq/generated/pyapi.hpp" 13 #ifndef ETEQ_SHAPED_ARR_HPP 14 #define ETEQ_SHAPED_ARR_HPP 37 #endif // ETEQ_SHAPED_ARR_HPP Shaped array wraps around a vector and shape.
Definition: shaped_arr.hpp:21
std::vector< T > data_
Vector of size equal to shape_.n_elems()
Definition: shaped_arr.hpp:29
Definition: constant.hpp:17
ShapedArr(teq::Shape shape, T data=0)
Definition: shaped_arr.hpp:25
teq::Shape shape_
Tensor shape of data_.
Definition: shaped_arr.hpp:32