ExponentTrait
trait ExponentTrait (View source)
Exponent methods
Methods
static NdArray|int|float
static NdArray|int|float
static NdArray|int|float
static
static float|int|NdArray
Details
final static NdArray|int|float
exp(NdArray|array|int|float $m)
Calculate the exponential of all elements in the input array.
final static NdArray|int|float
expm1(NdArray|array|int|float $m)
Calculate exp(x) - 1 for all elements in the array.
final static NdArray|int|float
exp2(NdArray|array|int|float $m)
Calculate 2**p for all p in the input array.
final static
power(float|int|array|NdArray $matrix, float|int $exponent)
Matrix elements raised to powers.
final static float|int|NdArray
square(float|int|array|NdArray $matrix)
The element-wise square of the input.
final static NdArray
sqrt($matrix)
The non-negative square-root of an array, element-wise.