A set of helper functions used by dense tensors. More...
Namespaces | |
namespace | syten |
Syten namespace. | |
namespace | syten::DenseImpl |
Namespace for helper functions for dense tensors. | |
Typedefs | |
template<Rank rank> | |
using | syten::DenseImpl::Coord = std::array< Index, rank > |
A set of coordinates, as used by syten::DenseTensor. More... | |
Functions | |
template<Rank rank, typename Scalar > | |
void | syten::DenseImpl::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 | syten::DenseImpl::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... | |
A set of helper functions used by dense tensors.