Documentation of CSL
Public Member Functions
csl::Tensor Class Reference
Inheritance diagram for csl::Tensor:
Inheritance graph
[legend]

Public Member Functions

 Tensor (const std::string &t_name, const Space *t_space)
 Constructor of a 1-indexed parent. More...
 
 Tensor (const std::string &t_name, const std::vector< const Space *> &t_space)
 Constructor of a n-indexed parent. More...
 
 Tensor (const std::string &t_name, const std::vector< const Space *> &t_space, const Expr &t_tensor)
 Constructor of a n-indexed parent, with explicit tensor tensor. More...
 
 Tensor (const std::string &t_name, const Space *t_space, const Expr &t_tensor)
 Constructor of a 1-indexed parent, with explicit tensor tensor. More...
 
template<class ... Args>
Expr operator() (Args &&...args)
 
template<class ... Args>
Expr operator() (const std::vector< int > &indices, Args &&...args)
 
template<class ... Args>
Expr operator() (const std::vector< Index > &indices, Args &&...args)
 

Constructor & Destructor Documentation

◆ Tensor() [1/4]

csl::Tensor::Tensor ( const std::string &  t_name,
const Space t_space 
)
inline

Constructor of a 1-indexed parent.

Parameters
t_nameName of the parent.
t_spaceVector space in which the Index lives.

◆ Tensor() [2/4]

csl::Tensor::Tensor ( const std::string &  t_name,
const std::vector< const Space *> &  t_space 
)
inline

Constructor of a n-indexed parent.

Parameters
t_nameName of the parent.
t_spaceList of the n spaces in which each index lives.

◆ Tensor() [3/4]

csl::Tensor::Tensor ( const std::string &  t_name,
const std::vector< const Space *> &  t_space,
const Expr t_tensor 
)
inline

Constructor of a n-indexed parent, with explicit tensor tensor.

Parameters
t_nameName of the parent.
t_spaceList of the n spaces in which each index lives.
t_tensorExplicit tensor. Must match exactly the shape given by the IndexStructure.

◆ Tensor() [4/4]

csl::Tensor::Tensor ( const std::string &  t_name,
const Space t_space,
const Expr t_tensor 
)
inline

Constructor of a 1-indexed parent, with explicit tensor tensor.

Parameters
t_nameName of the parent.
t_spaceVector space in which the index lives.
t_tensorExplicit tensor. Must match exactly the shape given by the IndexStructure.

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