SyTen
syten::OffsetDenseTensorImpl Namespace Reference

Implementation for offset dense tensors. More...

Classes

struct  OffsetDenseTensor
 Implementation for syten::OffsetDenseTensor. More...
 

Functions

template<Rank rank, typename Scalar >
void addScaled (DenseTensor< rank, Scalar > &a, OffsetDenseTensor< rank, Scalar > const &b, typename IdentityType< Scalar >::type const factor, EliminateZeros const ezeros)
 \( a_i = a_i + f b_i \) with a a standard dense tensor and b an offset dense tensor. More...
 
template<Rank rank, typename Scalar >
bool isZero (OffsetDenseTensor< rank, Scalar > const &a)
 Returns true iff all elements of the offset dense tensor a are identically zero. More...
 
template<Rank rank, typename Scalar >
OffsetDenseTensor< rank, Scalar > multi_transpose (OffsetDenseTensor< rank, Scalar > const &in, ConstSpan< Index >, Conj=Conj::n())
 
template<Rank rank, typename Scalar >
ScalarBase< Scalar >::type normSqd (OffsetDenseTensor< rank, Scalar > const &a)
 Returns the squared norm of the offset dense tensor a. More...
 
template<Rank rank, typename ScalarA , typename ScalarB >
OffsetDenseTensor< rank, ScalarA > & operator*= (OffsetDenseTensor< rank, ScalarA > &a, ScalarB b)
 \( a_{i\ldots} = b \cdot a_{i\ldots} \) More...
 

Detailed Description

Implementation for offset dense tensors.