SyTen
syten::T3N::T3NTensor Struct Reference

Wrapper class for STensor & SBasis. More...

#include <t3n-tensor.h>

+ Collaboration diagram for syten::T3N::T3NTensor:

Public Types

typedef AsyncCached< STensorCachedType
 Cached STensor type. More...
 
typedef Vec< syten::STensorImpl::SBasisSBases
 Underlying Bases. More...
 
typedef Vec< syten::STensorImpl::SBasisIdSBasisIds
 Undelying Ids. More...
 
typedef syten::STensorImpl::STensor STensor
 Underlying Tensor type. More...
 

Public Member Functions

MemoryUsage::MemorySize allocSize () const
 Returns the total size of the Tensor. More...
 
SBasisIdbId (Index i)
 Shortcut. More...
 
SBasisId const & bId (Index i) const
 
bool checkBases () const
 Check if all SBases in T3NTensor and STensor are the same. More...
 
void clear ()
 Proxy for clearing Tensor. More...
 
bool empty () const
 Proxy for checking emptyness. More...
 
Basis getBasis (Index const leg) const
 Proxy for getting Basis. More...
 
BasisMap getBasisMap (Index const leg) const
 Proxy for BasisMap. More...
 
Index getMaxBlockSize (Index const leg) const
 Proxy for getMaxBlocksize. More...
 
Index getReducedDim (Index const leg) const
 Proxy for getReducedDim. More...
 
std::vector< IndexgetReducedDims () const
 Proxy for getReducedDims. More...
 
Index getTotalDim (Index const leg) const
 Proxy for getTotalDim. More...
 
SBasisIdprime (Index const which, int const lvl=1)
 Primes Id and STensor. More...
 
void printTotalDims () const
 Proxy for getTotalDims. More...
 
Index rank () const
 Returns the rank. More...
 
void reduce ()
 Proxy for reducing Tensor. More...
 
void rename (Index which, std::string const &name)
 Sets the name of an SBasis. More...
 
SBasissb (Index i)
 Getter. More...
 
SBasis const & sb (Index i) const
 Const overload. More...
 
template<typename Archive >
void serialize (Archive &ar, unsigned int const in_version)
 Boost serialization. More...
 
void setIds (SBases const &input)
 Sets the ids of an SBases to the Ids of this. More...
 
Index size () const
 Proxy for getting size. More...
 
 T3NTensor ()=default
 Default Constructor. More...
 
 T3NTensor (Index size)
 Resize the SBases Vector. More...
 
 T3NTensor (SBases bs_, STensor t_)
 Setter constructor. More...
 
 T3NTensor (SBasisIds ids_, STensor t_)
 Setter constructor. More...
 
SBasisIdunprime (Index const which, int const lvl=1)
 Unprimes Id and STensor. More...
 
void cache (bool const do_cache=true) const
 Cache STensor. More...
 
void uncache ()
 Uncache STensor. More...
 
bool is_data_loaded () const
 Checks if data is loaded. More...
 
Cuda utilities.
void make_cuda ()
 Loads STensor on the GPU. More...
 
void maybe_make_cuda ()
 Maybe loads STensor on the GPU. More...
 
void make_standard ()
 Loads STensor to RAM. More...
 

Public Attributes

SBasisIds b
 Vector of bases. More...
 
CachedType t
 Smart tensor. More...
 

Static Public Attributes

static unsigned int const version = 2
 Version. More...
 

Detailed Description

Wrapper class for STensor & SBasis.


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