SyTen
syten::DenseImpl Namespace Reference

Namespace for helper functions for dense tensors. More...

Typedefs

template<Rank rank>
using Coord = std::array< Index, rank >
 A set of coordinates, as used by syten::DenseTensor. More...
 

Functions

template<Rank rank, typename Scalar >
void checkDimensions (Coord< rank > const &dims)
 Checks that the supplied dimensions are within an acceptable range, in particular do not result in a tensor that is too large (meaning that the syten::Index type would no longer suffice to index into it). More...
 
template<Rank rank>
Index getCoordinate (Coord< rank > const &coordinates, Coord< rank > const &dims)
 Given a set of coordinates and a set of dimensions, returns the offset into the dense tensor. More...
 

Detailed Description

Namespace for helper functions for dense tensors.