Macros

MARRAY_LEN_TYPE

User-definable macro defining the type of tensor indices.

Default is ptrdiff_t.

Note

This type must be signed.

MARRAY_STRIDE_TYPE

User-definable macro defining the type of tensor strides.

Default is ptrdiff_t.

Note

This type must be signed.

MARRAY_OPT_NDIM

User-definable macro which indicates the highest number of tensor dimensions likely to be encountered.

Tensors with a larger number of dimensions may always be created, but dynamic allocation will be used for and dimension-specific data.

MARRAY_DEBUG

User-definable macro requesting error checking (including full bounds checking).

MARRAY_DEFAULT_LAYOUT

User-definable macro specifying the default tensor layout.

#define this macro to either ROW_MAJOR or COLUMN_MAJOR before including any MArray headers. Otherwise, the default is ROW_MAJOR. The default can be also overriden when constructing a tensor or view.

MARRAY_DEFAULT_BASE

User-definable macro specifying the default base for indices.

#define this macro to either BASE_ZERO or BASE_ONE before including any MArray headers. Otherwise, the default is BASE_ZERO. The default can be also overriden when constructing a tensor or view.