Tensor row major (i.e. last dimension is contiguous) storage order.
More...
#include <mpqc/math/tensor/order.hpp>
|
template<size_t N> |
static boost::array< size_t, N > | strides (const size_t *ld) |
| Constructs strides array. More...
|
|
template<class Index , class Strides > |
static ptrdiff_t | index (const Index &idx, const Strides &strides) |
| given N-d index tuple and strides, compute 1-d index
|
|
Tensor row major (i.e. last dimension is contiguous) storage order.
◆ strides()
template<size_t N>
static boost::array<size_t,N> mpqc::TensorRowMajor::strides |
( |
const size_t * |
ld | ) |
|
|
inlinestatic |
Constructs strides array.
- Parameters
-
Referenced by index().
The documentation for this struct was generated from the following file: