Function
Create an Array that is the product of a set of regular or irregular position Arrays.
Syntax
#include <dx/dx.h>
ProductArray DXNewProductArray(int n, ...)
ProductArray DXNewProductArrayV(int n, Array *terms)
Functional Details
All of the Array types must be floating-point and of the same rank and shape. The Array created will have the same rank and shape as the input Arrays. The terms of the product are given by the Array pointer terms (for DXNewProductArrayV) or by the last n arguments (for DXNewProductArray).
Product Arrays are most often used to construct regular or partially regular "positions" components. In the case of fully regular positions (e.g., when each of the items is a Regular Array), it is often be easier to use DXMakeGridPositions.
The Array created can be deleted with DXDelete. See 4.2 , "Memory Management".
Return Value
Return the Product Array or returns NULL and set an error code.
See Also
DXGetPathArrayInfo, DXMakeGridPositions, DXMakeGridPositionsV
[Data Explorer Home Page | Contact Data Explorer | Same document on Data Explorer Home Page ]