MPQC  3.0.0-alpha
mpqc::TensorRowMajor Struct Reference

Tensor row major (i.e. last dimension is contiguous) storage order. More...

#include <mpqc/math/tensor/order.hpp>

Classes

struct  make_index
 

Static Public Member Functions

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
 

Detailed Description

Tensor row major (i.e. last dimension is contiguous) storage order.

Member Function Documentation

◆ strides()

template<size_t N>
static boost::array<size_t,N> mpqc::TensorRowMajor::strides ( const size_t *  ld)
inlinestatic

Constructs strides array.

Parameters
ldLeading dimensions

Referenced by index().


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

Generated at Sun Jan 26 2020 23:24:02 for MPQC 3.0.0-alpha using the documentation package Doxygen 1.8.16.