oph_padding

Description

Behaviour

Returns an array in which the input is filled by a padding value so that array size becomes a given value.

Parameters

  • input measure type: Ophidia typing. Supported types are enumerations of: ‘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: list of input measures.
  • size: minimum number of elements of output array. If input array is larger then the primitive returns input array.
  • filling: number used as padding value.

Return type

Binary-array.

Examples

Concat three measures

oph_padding('OPH_DOUBLE','OPH_DOUBLE,',measure,100,-1)

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’” “‘oph_double’”   “1” / “1”
output measure type “oph_type” “yes” “‘oph_double’|’oph_float’ |’oph_int’|’oph_long’|’oph_short’|’oph_byte’” “‘oph_double’”   “1” / “1”
measure “binary-array” “yes”       “1” /
size “long-long” “no”   “0”   “0” / “1”
filling “double” “no”   “0”   “0” / “1”