Miscellaneous
[lite array - A C++ Multidimensional Array Library]

Defines

#define LITE_ARRAY_MAX_DIMS   3
 The maximum number of dimensions for arrays.
#define LITE_ARRAY_MAX_PACKS   4
 The maximum number of elements in a lite::pack.
#define LITE_ARRAY_MAX_VECTOR_ARGS   5
 The maximum size of fixed size vectors (1D arrays) which can be initialized using a constructor.
#define LITE_ARRAY_MAX_ITERATOR_ARGS   3
 The maximum number of arguments that will be passed from the constructor of a reference array to its iterator object verbatim.
#define LITE_ARRAY_MAX_STATIC_UNROLL_LENGTH   5
 For all array operations in which the innermost loop has a constant number of iterations which is no more than LITE_ARRAY_MAX_STATIC_UNROLL_LENGTH the innermost loop is fully unrolled.
#define LITE_ARRAY_MAX_DYNAMIC_UNROLL_DEPTH   4
 For all array operations in which the innermost loop has a non-constant number of iterations or has more than LITE_ARRAY_MAX_STATIC_UNROLL_LENGTH number of iterations, the innermost loop is dynamically unrolled in $2^k$ iterations at a time where k is at most LITE_ARRAY_MAX_DYNAMIC_UNROLL_DEPTH .
#define LITE_ARRAY_VERSION   3505
 Integral version number of the library.
#define LITE_ARRAY_VERSION_STR   "3.505"
 An string representation of the version number of the library.

Detailed Description

Changing the Limists and Regenerating The Header File.

There are several parameters declared at the top of the file array.hpp.template that can be tweaked for example to change the maximum number of dimensions supported. There is also a macro constant defined corresponding to each of these parameters. You can refer to the documentation of the macro to find out about the purpose of each parameter. The following is the list of parameters and the corresponding macros:


Define Documentation

#define LITE_ARRAY_MAX_ITERATOR_ARGS   3

The maximum number of arguments that will be passed from the constructor of a reference array to its iterator object verbatim.

Todo:
Add an example
#define LITE_ARRAY_MAX_VECTOR_ARGS   5

The maximum size of fixed size vectors (1D arrays) which can be initialized using a constructor.

Example
        array<double[2]> a(2.3, 4.5);
        array<double[3]> a(2.3, 4.5, 4.6);
        array<double[9]> a(1, 2, ..., 9); // error: more than LITE_ARRAY_MAX_VECTOR_ARGS number of args.
 All Classes Namespaces Files Functions Variables Typedefs Defines

Generated on Fri Nov 6 02:03:21 2009 for Lite by  doxygen 1.6.0