Behaviour
It extracts a subset of a measure array. If size-i params are defined, then the array is considered multidimensional with i implicit dimensions, each of size-i. The subset cannot be applied on multiple dimensions.
Parameters
Return type
Binary-array.
Examples
Extract the first 4 odd elements, elements from 30 to 33 and element 60.
oph_get_subarray2('OPH_DOUBLE','OPH_DOUBLE',measure,'1:2:8,30:33,60')
Operation type
Simple.
Argument name | Type | Mandatory | Values | Default | Min/Max-value | Min/Max-times |
---|---|---|---|---|---|---|
input measure type | “oph_type” | “yes” | “‘oph_double’|’oph_float’ |’oph_int’|’oph_long’|’oph_short’|’oph_byte’” | “1” / “1” | ||
output measure type | “oph_type” | “yes” | “‘oph_double’|’oph_float’ |’oph_int’|’oph_long’|’oph_short’|’oph_byte’” | “1” / “1” | ||
measure | “binary-array” | “yes” | “1” / “1” | |||
subset | “string” | “yes” | “1” / “1” | |||
size | “long-long” | “no” | “0” | “0” / |