NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
void ArrayOp ( const byte  op,
variant &  dest,
const variant &  src[],
unsigned int  idx,
unsigned int  len 
)
inline

Operate on numeric arrays.

This function lets you perform various operations on numeric arrays.

Warning
This function requires the enhanced NBC/NXC firmware.
Parameters
opThe array operation. See Array operation constants.
destThe destination variant type (scalar or array, depending on the operation).
srcThe source numeric array.
idxThe index of the start of the array subset to process. Pass NA to start with the first element.
lenThe number of elements to include in the specified process. Pass NA to include the rest of the elements in the src array (from idx to the end of the array).
Warning
You cannot use NXC expressions with this function
Examples:
ex_ArrayOp.nxc.