casa
$Rev:20696$
|
General global functions for Arrays. More...
#include <ArrayBase.h>
Public Member Functions | |
size_t | ArrayVolume (uInt Ndim, const Int *Shape) |
What is the volume of an N-dimensional array. | |
size_t | ArrayIndexOffset (uInt Ndim, const ssize_t *Shape, const ssize_t *Origin, const ssize_t *Inc, const IPosition &Index) |
What is the linear index into an "Ndim" dimensional array of the given "Shape", "Origin", and "Increment" for a given IPosition Index. | |
size_t | ArrayIndexOffset (uInt Ndim, const ssize_t *Shape, const ssize_t *Inc, const IPosition &Index) |
General global functions for Arrays.
<h3>Review Status</h3><dl><dt>Reviewed By:<dd>UNKNOWN<dt>Date Reviewed:<dd>before2004/08/25<dt>Test programs:<dd>tArray</dl>
These are generally useful global functions which operate on all Arrays.
Definition at line 247 of file ArrayBase.h.
size_t casa::ArrayBase_global_functions_Array_general_global_functions::ArrayIndexOffset | ( | uInt | Ndim, |
const ssize_t * | Shape, | ||
const ssize_t * | Origin, | ||
const ssize_t * | Inc, | ||
const IPosition & | Index | ||
) |
size_t casa::ArrayBase_global_functions_Array_general_global_functions::ArrayIndexOffset | ( | uInt | Ndim, |
const ssize_t * | Shape, | ||
const ssize_t * | Inc, | ||
const IPosition & | Index | ||
) |
size_t casa::ArrayBase_global_functions_Array_general_global_functions::ArrayVolume | ( | uInt | Ndim, |
const Int * | Shape | ||
) |
What is the volume of an N-dimensional array.
Shape[0]*Shape[1]*...*Shape[N-1]. An Array helper function.