Developer Guide and Reference

Contents

n_container

Template class for N-dimensional container. The contained primitive type, exact memory layout and container shape are defined via template arguments.

Syntax

template <typename PrimitiveT, typename LayoutT, typename ExtentsT, typename AllocatorT > class n_container;
Description
N-dimensional container of PrimitiveT elements with predefined memory layout and shape. Provides accessor interface suitable for flexible and efficient data access inside SIMD loops
The following table provides information on the template arguments for
n_container
Template Argument
Description
typename PrimitiveT
The type that each cell in the multi-dimensional container will store.
Requirements: PrimitiveT must be previously declared with the SDLT_PRIMITIVE macro.
typename LayoutT
The in-memory data layout of cells in the container.
Requirements: LayoutT must be a class from
layout
namespace.
typename ExtentsT
The shape of the container.
Requirements: ExtentsT must be a concrete type of
n_extent_t
variadic template.
class AllocatorT = allocator::default_alloc
[Optional] Specify type of
allocator
to be used.
allocator::default_alloc is currently the only allocator supported.
The following table provides information on the types defined as members of
n_container