sisi4s
Loading...
Searching...
No Matches
sisi4s::DryTensor< F > Class Template Reference

#include <DryTensor.hpp>

Inheritance diagram for sisi4s::DryTensor< F >:
Collaboration diagram for sisi4s::DryTensor< F >:

Public Member Functions

 DryTensor (int order_, int const *lens_, int const *syms_, SourceLocation const &location_=SourceLocation())
 Creates a dry tensor for resource consumption estimation without actually allocating its data. Note that currently only the memory requirement of a DryTensor is estimated. The number of FLOPS should also be estimated in the future. Symmetryies are also ignored at the moment.
 
 DryTensor (DryTensor const &A, SourceLocation const &location_=SourceLocation())
 
virtual ~DryTensor ()
 
virtual void use ()
 
int64_t getElementsCount () const
 
void set_name (std::string const &name_)
 
std::string const & get_name () const
 

Public Attributes

int order
 
std::vector< int > lens
 
std::vector< int > syms
 
SourceLocation location
 
std::string name
 

Protected Member Functions

void allocate ()
 
void free ()
 

Protected Attributes

int64_t size
 

Constructor & Destructor Documentation

◆ DryTensor() [1/2]

template<typename F = double>
sisi4s::DryTensor< F >::DryTensor ( int  order_,
int const *  lens_,
int const *  syms_,
SourceLocation const &  location_ = SourceLocation() 
)
inline

Creates a dry tensor for resource consumption estimation without actually allocating its data. Note that currently only the memory requirement of a DryTensor is estimated. The number of FLOPS should also be estimated in the future. Symmetryies are also ignored at the moment.

Here is the call graph for this function:

◆ DryTensor() [2/2]

template<typename F = double>
sisi4s::DryTensor< F >::DryTensor ( DryTensor< F > const &  A,
SourceLocation const &  location_ = SourceLocation() 
)
inline
Here is the call graph for this function:

◆ ~DryTensor()

template<typename F = double>
virtual sisi4s::DryTensor< F >::~DryTensor ( )
inlinevirtual
Here is the call graph for this function:

Member Function Documentation

◆ allocate()

template<typename F = double>
void sisi4s::DryTensor< F >::allocate ( )
inlineprotected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ free()

template<typename F = double>
void sisi4s::DryTensor< F >::free ( )
inlineprotected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_name()

template<typename F = double>
std::string const & sisi4s::DryTensor< F >::get_name ( ) const
inline
Here is the caller graph for this function:

◆ getElementsCount()

template<typename F = double>
int64_t sisi4s::DryTensor< F >::getElementsCount ( ) const
inline
Here is the caller graph for this function:

◆ set_name()

template<typename F = double>
void sisi4s::DryTensor< F >::set_name ( std::string const &  name_)
inline

◆ use()

template<typename F = double>
virtual void sisi4s::DryTensor< F >::use ( )
inlinevirtual
Here is the caller graph for this function:

Member Data Documentation

◆ lens

template<typename F = double>
std::vector<int> sisi4s::DryTensor< F >::lens

◆ location

template<typename F = double>
SourceLocation sisi4s::DryTensor< F >::location

◆ name

template<typename F = double>
std::string sisi4s::DryTensor< F >::name

◆ order

template<typename F = double>
int sisi4s::DryTensor< F >::order

◆ size

template<typename F = double>
int64_t sisi4s::DryTensor< F >::size
protected

◆ syms

template<typename F = double>
std::vector<int> sisi4s::DryTensor< F >::syms

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