Tenncor
|
Constant implementation of Eigen leaf tensor. More...
#include <constant.hpp>
Public Member Functions | |
Constant (const Constant< T > &other)=delete | |
Constant (Constant< T > &&other)=delete | |
Constant< T > & | operator= (const Constant< T > &other)=delete |
Constant< T > & | operator= (Constant< T > &&other)=delete |
std::string | to_string (void) const override |
Implementation of iTensor. More... | |
bool | is_const (void) const override |
Implementation of iLeaf. More... | |
bool | is_scalar (void) const |
Return true if constant data values are all the same, otherwise false. More... | |
![]() | |
virtual | ~iLeaf (void)=default |
const teq::Shape & | shape (void) const override |
Implementation of iTensor. More... | |
void * | data (void) override |
Implementation of iData. More... | |
const void * | data (void) const override |
Implementation of iData. More... | |
size_t | type_code (void) const override |
Implementation of iData. More... | |
std::string | type_label (void) const override |
Implementation of iData. More... | |
size_t | nbytes (void) const override |
Implementation of iData. More... | |
![]() | |
void | accept (iTraveler &visiter) override |
Implementation of iTensor. More... | |
![]() | |
virtual | ~iTensor (void)=default |
![]() | |
virtual | ~iData (void)=default |
Static Public Member Functions | |
static Constant< T > * | get (T *data, teq::Shape shape) |
static Constant< T > * | get_scalar (T scalar, teq::Shape shape) |
Return Constant tensor containing scalar expanded to fill shape. More... | |
Private Member Functions | |
Constant (T *data, teq::Shape shape) | |
Additional Inherited Members | |
![]() | |
iLeaf (T *data, teq::Shape shape) | |
![]() | |
TensorT< T > | data_ |
Data Source. More... | |
teq::Shape | shape_ |
Shape utility to avoid excessive conversion between data_.dimensions() More... | |
Constant implementation of Eigen leaf tensor.
|
delete |
|
delete |
|
inlineprivate |
|
static |
Return Constant tensor containing first shape.n_elems() values of data pointer
|
inlinestatic |
Return Constant tensor containing scalar expanded to fill shape.
|
inlineoverridevirtual |
Implementation of iLeaf.
Implements teq::iLeaf.
|
inline |
Return true if constant data values are all the same, otherwise false.
|
delete |
|
delete |
|
inlineoverridevirtual |
Implementation of iTensor.
Implements teq::iTensor.