![]() |
KIDS
ver-0.0.1
KIDS : Kernel Integrated Dynamics Simulator
|
Tensor class is the container for array-like data. More...
#include <Tensor.h>
Public Types | |
using | SizeType = std::size_t |
using | DataType = T |
Public Member Functions | |
Tensor (Shape S, const std::string &info="") | |
virtual std::string | repr () |
virtual std::string | help (const std::string &name) |
T * | data () |
std::size_t | size () |
Shape & | shape () |
kids_dtype | type () |
Protected Attributes | |
kids_dtype | _type = kids_void_type |
Private Attributes | |
std::size_t | _size |
Shape | _shape |
std::string | _doc_info |
std::shared_ptr< std::vector< T > > | _data |
Tensor class is the container for array-like data.
using PROJECT_NS::Tensor< T >::DataType = T |
using PROJECT_NS::Tensor< T >::SizeType = std::size_t |
|
inline |
Definition at line 48 of file Tensor.h.
References PROJECT_NS::Tensor< T >::_data, PROJECT_NS::Tensor< T >::_shape, PROJECT_NS::Tensor< T >::_size, PROJECT_NS::Node::_type, and PROJECT_NS::Shape::size().
|
inline |
Definition at line 66 of file Tensor.h.
References PROJECT_NS::Tensor< T >::_data.
|
inlinevirtual |
Implements PROJECT_NS::Node.
Definition at line 64 of file Tensor.h.
References PROJECT_NS::Tensor< T >::_doc_info.
|
inlinevirtual |
Implements PROJECT_NS::Node.
Definition at line 54 of file Tensor.h.
References PROJECT_NS::Tensor< T >::_data, PROJECT_NS::Tensor< T >::_size, and FMT.
|
inline |
Definition at line 70 of file Tensor.h.
References PROJECT_NS::Tensor< T >::_shape.
|
inline |
Definition at line 68 of file Tensor.h.
References PROJECT_NS::Tensor< T >::_size.
|
inlineinherited |
Definition at line 45 of file Node.h.
References PROJECT_NS::Node::_type.
Referenced by PROJECT_NS::DataSet::help(), and PROJECT_NS::DataSet::repr().
|
private |
Definition at line 76 of file Tensor.h.
Referenced by PROJECT_NS::Tensor< T >::data(), PROJECT_NS::Tensor< T >::repr(), and PROJECT_NS::Tensor< T >::Tensor().
|
private |
Definition at line 75 of file Tensor.h.
Referenced by PROJECT_NS::Tensor< T >::help().
|
private |
Definition at line 74 of file Tensor.h.
Referenced by PROJECT_NS::Tensor< T >::shape(), and PROJECT_NS::Tensor< T >::Tensor().
|
private |
Definition at line 73 of file Tensor.h.
Referenced by PROJECT_NS::Tensor< T >::repr(), PROJECT_NS::Tensor< T >::size(), and PROJECT_NS::Tensor< T >::Tensor().
|
protectedinherited |
Definition at line 50 of file Node.h.
Referenced by PROJECT_NS::DataSet::DataSet(), PROJECT_NS::Tensor< T >::Tensor(), and PROJECT_NS::Node::type().