Skip to content

Vector Exponentiation ​

These instructions evaluate powers and natural exponentials element by element.

OpcodeArgumentsOperands (stack)Description
powvtypebases, exponentsReplaces two equal-length numeric arrays with integer element-wise powers; type must be sht, int, lng, or oct, and the top array supplies exponents.
powivtypebases, exponentsReplaces two equal-length numeric arrays with floating-point bases raised to integer exponents; type must be hlf, flt, or dbl, and the top array supplies exponents.
powfvtypebases, exponentsReplaces two equal-length numeric arrays with floating-point element-wise powers; type must be hlf, flt, or dbl, and the top array supplies exponents.
expvtypevaluesReplaces one numeric array with an equal-length array containing e raised to each element; type must be hlf, flt, or dbl.