Arene Base
Fundamental Utilities For Safety Critical C++
Loading...
Searching...
No Matches
arene::base::linalg::layout_constant_diagonal< OffsetExtentsType > Class Template Reference

An mdspan layout mapping policy for a diagonal tensorlet. More...

Detailed Description

template<typename OffsetExtentsType>
class arene::base::linalg::layout_constant_diagonal< OffsetExtentsType >

An mdspan layout mapping policy for a diagonal tensorlet.

Template Parameters
OffsetExtentsTypeAn instantiation of extents which specifies the offset of the diagonal

Within the mapped layouts, the OffsetExtentsType determine where the diagonal is

  • For a rank 0 tensorlet, there are no offsets, and the one element is always on the diagonal
  • For a rank 1 tensorlet, all elements are on the diagonal
  • For a rank N>=2 tensorlet, the diagonal is where all values of index_n + offsets.extent(n) are equal, where index_n is an index for dimension n, such that index_n>=0 and index_n < extents.extent(n)

The documentation for this class was generated from the following file: