NAME

cxDimsProd - compute total number of data or coordinate values in a lattice
#include <cx/DataAccess.h>

long cxDimsProd(long nDim, long dims[], long nVar)
integer function cxDimsProd(ndim, dims, nvar)
integer ndim, dims(ndim), nvar
nDim
Number of dimensions in the lattice.
dims
Array specifying number of nodes in each dimension.
nVar
Number of values at each node.
cxDimsProd returns an integer equal to the total number of data or coordinate values in the lattice. This routine computes the product of all dims[i] times nVar from i=0 to nDim-1 to give the total number of data or coordinate values in a lattice. Set nVar to nDataVar (the number of data values at each node) to compute the total number of values in the cxData values array. For a curvilinear lattice, set nVar to nCoordVar (the number of coordinate values at each node) to calculate the total number of values in the cxCoord array. cxDimsSum(3E)
Last modified: Mon Nov 6 16:33:08 GMT 2000
[ Documentation Home ]
© The Numerical Algorithms Group Ltd, Oxford UK. 1996