GQCP
|
#include <DenseVectorizer.hpp>
Public Member Functions | |
DenseVectorizer (const std::array< size_t, A > &dimensions, const Ordering ordering=Ordering::ColumnMajor) | |
DenseVectorizer () | |
size_t | offset (const std::array< size_t, A > &indices) const |
size_t | dimension (const size_t axis) const |
const std::array< size_t, A > & | dimensions () const |
size_t | numberOfAxes () const |
size_t | numberOfElements () const |
size_t | stride (const size_t axis) const |
const std::array< size_t, A > & | strides () const |
Static Public Attributes | |
static constexpr auto | NumberOfAxes = A |
A class that takes care of mapping indices related to dense axes to vector indices.
A | The number of axes supported by the vectorizer. |
|
inline |
Initialize a DenseVectorizer
from axis dimensions and an ordering type.
dimensions | The dimensions of each axis. |
ordering | The ordering of the axes. |
|
inline |
The default constructor.
|
inline |
axis | An axis number. |
|
inline |
|
inline |
|
inline |
|
inline |
MARK: Element access Calculate the 1-dimensional offset number (also called: address, contiguous index) corresponding to the given indices that specify coordinates for each axis.
indices | A list of indices, where each entry corresponds to the coordinate of each axis. |
|
inline |
axis | An axis number. |
|
inline |
|
staticconstexpr |