Ensign
Low-rank framework for multi-core CPUs and GPUs
Loading...
Searching...
No Matches
Ensign::node< T > Struct Template Referenceabstract

Base class for a node in a tree tensor network. More...

#include <tree.hpp>

+ Inheritance diagram for Ensign::node< T >:

Public Member Functions

 node ()=default
 
 node (const std::string _id, node *const _parent, std::array< node *, 2 > _child, const Index _r_in, const Index _n_basisfunctions)
 
virtual ~node ()=default
 
virtual bool IsInternal () const =0
 
virtual bool IsExternal () const =0
 
virtual void Initialize (int ncid)=0
 
Index RankIn () const
 

Public Attributes

const std::string id
 
node *const parent
 
std::array< node *, 2 > child
 
const Index n_basisfunctions
 
Ensign::multi_array< T, 2 > S
 

Detailed Description

template<class T>
struct Ensign::node< T >

Base class for a node in a tree tensor network.

Definition at line 37 of file tree.hpp.

Constructor & Destructor Documentation

◆ node() [1/2]

template<class T >
Ensign::node< T >::node ( )
default

◆ node() [2/2]

template<class T >
Ensign::node< T >::node ( const std::string  _id,
node< T > *const  _parent,
std::array< node< T > *, 2 >  _child,
const Index  _r_in,
const Index  _n_basisfunctions 
)
inline

Definition at line 48 of file tree.hpp.

◆ ~node()

template<class T >
virtual Ensign::node< T >::~node ( )
virtualdefault

Member Function Documentation

◆ Initialize()

template<class T >
virtual void Ensign::node< T >::Initialize ( int  ncid)
pure virtual

◆ IsExternal()

template<class T >
virtual bool Ensign::node< T >::IsExternal ( ) const
pure virtual

◆ IsInternal()

template<class T >
virtual bool Ensign::node< T >::IsInternal ( ) const
pure virtual

◆ RankIn()

template<class T >
Index Ensign::node< T >::RankIn ( ) const
inline

Definition at line 62 of file tree.hpp.

Member Data Documentation

◆ child

template<class T >
std::array<node*, 2> Ensign::node< T >::child

Definition at line 41 of file tree.hpp.

◆ id

template<class T >
const std::string Ensign::node< T >::id

Definition at line 38 of file tree.hpp.

◆ n_basisfunctions

template<class T >
const Index Ensign::node< T >::n_basisfunctions

Definition at line 42 of file tree.hpp.

◆ parent

template<class T >
node* const Ensign::node< T >::parent

Definition at line 40 of file tree.hpp.

◆ S

template<class T >
Ensign::multi_array<T, 2> Ensign::node< T >::S

Definition at line 44 of file tree.hpp.


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