oph_permute

Description

Behaviour

It executes a permutation of the implicit dimension order. It requires at least two dimensions, otherwise it returns the original measure.

Parameters

  • input measure type: Ophidia typing. Supported types are: ‘oph_double’; ‘oph_float’; ‘oph_long’; ‘oph_int’; ‘oph_short’; ‘oph_byte’.
  • output measure type: Ophidia typing. Supported types are: ‘oph_double’; ‘oph_float’; ‘oph_long’; ‘oph_int’; ‘oph_short’; ‘oph_byte’.
  • measure: input measure.
  • permutation: string representing the permutation, i.e. a comma-separated list of new levels of implicit dimensions, from the outermost to the innermost.
  • size: sizes of at least 2 implicit dimensions. The order must be the order of implicit dimensions before the permutation, from the innermost to the outermost.

Return type

Binary-array.

Examples

Swap the first implicit dimension with the second one.

oph_permute('OPH_DOUBLE','OPH_DOUBLE',measure,'2,1','oph_double',360,100)

Operation type

Simple.

Arguments

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”
permutation “string” “yes”       “1” / “1”
size “long-long” “no”   “0”   “2” /