(c) 2000-2010 Niv Drory, Claus A. Gössl, and Jan Snigula released under the GNU Public License (GPL)
The current version is 1.9.10, released March 5, 2010.
LTL provides dynamic arrays of up to 7-dimensions, subarrays and slicing, support for fixed-size vectors and matrices including basic linear algebra operations, expression templates-based evaluation, and I/O facilities for ascii and FITS format files. Utility classes for command-line processing and configuration-file processing are provided as well.
Although the library is developed with application to astronomical image and data processing in mind (therefore FITS format I/O), it is by no means restricted to these fields of application. In fact, it qualifies as a fully general array processing package.
Focus is laid on a high abstraction level regarding the handling of expressions involving arrays or parts of arrays and linear algebra related operations without negative impact on performance. Hence the use of expression templates throughout the library. The price to pay is dependence on a compiler implementing enough of the current ANSI C++ specification, as well as significantly higher demand on resources at compile time compared to hand-coded C implementations.
A new feature as of LTL 1.7 is the use of the vector execution unit present in some modern processors for evaluation of array expressions. This is basically a compiler independent auto-vectorizer. Currently PowerPC processors (Altivec) and x86 processors (SSE/SSE2 and above) are supported. Most array-valued (arithmetic, logical) and scalar-valued (reductions) operations on MArrays are currently vectorized.
Version 1.8 supports multithreaded environments, for example use with OpenMP.
Version 1.9 adds an interface to BLAS and LAPACK routines for dynamic arrays, and LU and singular value decomposition routines for fixed sized matrices. Additionally, partial reductions (reducing the rank of expressions by one by, e.g., summing along one dimension) are now supported.
For the full list of changes, see the ChangeLog.
LTL is known to compile on GCC versions 2.95.2 and above (Linux/IA32, Mac OS X/PPC, Solaris/SPARC), Intel ICC version 7.1 and above (Linux/IA32/IA64), Sun C++ version 5.5 and above (Solaris/SPARC), and IBM xlC version 6 and above (AIX/PPC, Mac OS X/PPC). Other sufficiently ANSI complient C++ compilers should also do, but might require small modifications. Patches welcome.
A summary of the library's main features is given below. You can browse the documentation online. A good starting point is the Introduction section, then read the conceptual documentation about Multidimensional Dynamic Arrays first, before proceeding to the other modules and the API reference.
The latest version is ltl-1.9.10 which can be downloaded here. Full installation instructions are given in the documentation. In general, the following should do the job:
tar -zxf ltl-1.9.10.tar.gz
cd ltl-1.9.10
./configure --prefix=/path/to/whereever/you/like
make
make check #optional; runs test suite
make install
The dynamically allocated multidimensional array ltl::MArray provides
The fixed-size ltl::FVector and ltl::FMatrix provide:
Additionally, there are some utility classes providing: