SyTen

◆ getCoordinate()

template<Rank rank, typename Scalar = SDef>
Index syten::OffsetDenseTensorImpl::OffsetDenseTensor< rank, Scalar >::getCoordinate ( Coord  coordinates) const
inline

Given a set of indices coordinates, return the associated linear coordinate.

This is not an index into data, which only covers a finite slice of this area.

References syten::OffsetDenseTensorImpl::OffsetDenseTensor< rank, Scalar >::data, syten::OffsetDenseTensorImpl::OffsetDenseTensor< rank, Scalar >::dims, syten::rank(), and SYTEN_ASSERT_DEBUG.

Referenced by syten::OffsetDenseTensorImpl::OffsetDenseTensor< rank, Scalar >::operator[]().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: