Tenncor
|
Leaf of the graph commonly representing the variable in an equation. More...
#include <ileaf.hpp>
Public Member Functions | |
virtual | ~iLeaf (void)=default |
void | accept (iTraveler &visiter) override |
Implementation of iTensor. More... | |
virtual bool | is_const (void) const =0 |
Return true if leaf is immutable, otherwise false. More... | |
![]() | |
virtual | ~iTensor (void)=default |
virtual const Shape & | shape (void) const =0 |
Return the shape held by this tensor. More... | |
virtual std::string | to_string (void) const =0 |
Return the string representation of the tensor. More... | |
![]() | |
virtual | ~iData (void)=default |
virtual void * | data (void)=0 |
Return pointer to internal data. More... | |
virtual const void * | data (void) const =0 |
Return const pointer to internal data. More... | |
virtual size_t | type_code (void) const =0 |
Return data type encoding. More... | |
virtual std::string | type_label (void) const =0 |
Return data type label (for better readability) More... | |
virtual size_t | nbytes (void) const =0 |
Return number of bytes in the data. More... | |
Leaf of the graph commonly representing the variable in an equation.
|
virtualdefault |
Reimplemented in eteq::iLeaf< T >.
|
inlineoverridevirtual |
Implementation of iTensor.
Implements teq::iTensor.
|
pure virtual |
Return true if leaf is immutable, otherwise false.
Implemented in eteq::Variable< T >, and eteq::Constant< T >.