SyTen
helpers.h File Reference

A set of helper functions used by dense tensors. More...

#include "inc/util/macros.h"
#include "inc/util/scalars.h"
+ Include dependency graph for helpers.h:
+ This graph shows which files directly or indirectly include this file:

Namespaces

 syten
 Syten 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...
 

Detailed Description

A set of helper functions used by dense tensors.