Tenncor
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
eteq::iLeaf< T > Struct Template Reference

iLeaf extension of TEQ iLeaf containing Eigen data objects More...

#include <ileaf.hpp>

Inheritance diagram for eteq::iLeaf< T >:
Inheritance graph
[legend]
Collaboration diagram for eteq::iLeaf< T >:
Collaboration graph
[legend]

Public Member Functions

virtual ~iLeaf (void)=default
 
const teq::Shapeshape (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...
 
- Public Member Functions inherited from teq::iLeaf
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...
 
- Public Member Functions inherited from teq::iTensor
virtual ~iTensor (void)=default
 
virtual std::string to_string (void) const =0
 Return the string representation of the tensor. More...
 
- Public Member Functions inherited from teq::iData
virtual ~iData (void)=default
 

Protected Member Functions

 iLeaf (T *data, teq::Shape shape)
 

Protected Attributes

TensorT< T > data_
 Data Source. More...
 
teq::Shape shape_
 Shape utility to avoid excessive conversion between data_.dimensions() More...
 

Detailed Description

template<typename T>
struct eteq::iLeaf< T >

iLeaf extension of TEQ iLeaf containing Eigen data objects

Constructor & Destructor Documentation

◆ ~iLeaf()

template<typename T >
virtual eteq::iLeaf< T >::~iLeaf ( void  )
virtualdefault

Reimplemented from teq::iLeaf.

◆ iLeaf()

template<typename T >
eteq::iLeaf< T >::iLeaf ( T *  data,
teq::Shape  shape 
)
inlineprotected

Member Function Documentation

◆ data() [1/2]

template<typename T >
void* eteq::iLeaf< T >::data ( void  )
inlineoverridevirtual

Implementation of iData.

Implements teq::iData.

◆ data() [2/2]

template<typename T >
const void* eteq::iLeaf< T >::data ( void  ) const
inlineoverridevirtual

Implementation of iData.

Implements teq::iData.

◆ nbytes()

template<typename T >
size_t eteq::iLeaf< T >::nbytes ( void  ) const
inlineoverridevirtual

Implementation of iData.

Implements teq::iData.

◆ shape()

template<typename T >
const teq::Shape& eteq::iLeaf< T >::shape ( void  ) const
inlineoverridevirtual

Implementation of iTensor.

Implements teq::iTensor.

◆ type_code()

template<typename T >
size_t eteq::iLeaf< T >::type_code ( void  ) const
inlineoverridevirtual

Implementation of iData.

Implements teq::iData.

◆ type_label()

template<typename T >
std::string eteq::iLeaf< T >::type_label ( void  ) const
inlineoverridevirtual

Implementation of iData.

Implements teq::iData.

Member Data Documentation

◆ data_

template<typename T >
TensorT<T> eteq::iLeaf< T >::data_
protected

Data Source.

◆ shape_

template<typename T >
teq::Shape eteq::iLeaf< T >::shape_
protected

Shape utility to avoid excessive conversion between data_.dimensions()


The documentation for this struct was generated from the following file: