XLL+ Class Library

COper::FromDoubleArray

Assigns the OPER to be an array of double's, and copies values into the array

[C++]
const COper& FromDoubleArray(
   double* pd,
   USHORT cRows
);
const COper& FromDoubleArray(
   double* pd,
   USHORT cRows,
   USHORT cCols,
   BOOL bByRows = FALSE
);
const COper& FromDoubleArray(
   double** apd,
   USHORT cRows,
   USHORT cCols,
   BOOL bByRows = FALSE
);

Parameters

pd

An array of double's, containing either cRows items, or (cRows x cCols) items, depending on the function variant used. For the latter type, the values should be arranged in the order specified by the bByRows parameter.

cRows

The number of rows contained in the supplied array of doubles.

pd

An array of double's, containing either cRows items, or (cRows x cCols) items, depending on the function variant used. For the latter type, the values should be arranged in the order specified by the bByRows parameter.

cRows

The number of rows contained in the supplied array of doubles.

cCols

The number of columns contained in the supplied array of doubles.

bByRows

Storage order of arrays of double's. If TRUE, then values in the same row are stored contiguously, otherwise values in the same column are assumed to be stored contiguously.

apd

An array of pointers to double, containing either cRows arrays each of size cCols, or cCols arrays each of size cRows, depending on the order specified by the bByRows parameter.

cRows

The number of rows contained in the supplied array of doubles.

cCols

The number of columns contained in the supplied array of doubles.

bByRows

Storage order of arrays of double's. If TRUE, then values in the same row are stored contiguously, otherwise values in the same column are assumed to be stored contiguously.

Remarks

This function sets the type of the COper to be an array, allocates space for the array of doubles provided and sets the values into the COper.

Requirements

Header: xllplus.h

See Also

COper Class | COper Methods