comparison arrayalloc.h @ 5:5f3c32dc6e17

* Adjust comment syntax to permit Doxygen to generate HTML documentation; add Doxyfile
author Chris Cannam
date Wed, 06 Oct 2010 15:19:49 +0100
parents 6422640a802f
children 977f541d6683
comparison
equal deleted inserted replaced
4:92ee28024c05 5:5f3c32dc6e17
1 #ifndef ARRAYALLOC 1 #ifndef ARRAYALLOC
2 #define ARRAYALLOC 2 #define ARRAYALLOC
3 3
4 /* 4 /**
5 arrayalloc.h - 2D, 3D and 4D array memory allocation routines. 5 \file arrayalloc.h - 2D, 3D and 4D array memory allocation routines.
6 6
7 An x-dimensional array (x=2, 3, 4, ...) is managed as a single memory block hosting all records, plus 7 An x-dimensional array (x=2, 3, 4, ...) is managed as a single memory block hosting all records, plus
8 an index block which is a (x-1)D array itself. Therefore a 2D array is allocated as two 1D arrays, a 8 an index block which is a (x-1)D array itself. Therefore a 2D array is allocated as two 1D arrays, a
9 3D array is allocated as three 1D arrays, etc. 9 3D array is allocated as three 1D arrays, etc.
10 10