51 _data = std::shared_ptr<std::vector<T>>(
new std::vector<T>(
_size, 0));
54 virtual std::string
repr() {
55 std::ostringstream os;
56 T* ptr =
_data->data();
60 for (
int i = 0; i <
_size; ++i) os <<
FMT(8) << ptr[i];
76 std::shared_ptr<std::vector<T>>
_data;
Declaration of the Node class used for DataSet.
Declaration of the Shape class.
definition of types in the project and some utiles for types
Node class is an abstract interface.
Shape class provide information about of a Tensor's shape.
Tensor class is the container for array-like data.
Tensor(Shape S, const std::string &info="")
virtual std::string repr()
std::shared_ptr< std::vector< T > > _data
virtual std::string help(const std::string &name)
< http://warp.povusers.org/FunctionParser/fparser.html