StaticArray1d

Contents

StaticArray1d#

template<int i0, int i1>
struct StaticArray1d#

Simple templated struct for creating a 1-dimensional array with (optionally) non-zero lower bounds.

The bounds are determined at compile-time

Example:

StaticArray1d<-2, 2> array1d;
array1d(-1) = 1.0;

Template Parameters:

i0, i1 – Lower and upper bounds of the 1st dimension