trait FloatTrait (View source)

Floating point methods

Methods

static NdArray|bool
signbit(NdArray|array|int|float $m)

Returns element-wise true where signbit is set (less than zero).

static NdArray|int|float
copysign(NdArray|array|int|float $m, NdArray|array|int|float $n)

Change the sign of m-element to that of n-element, element-wise.

Details

final static NdArray|bool signbit(NdArray|array|int|float $m)

Returns element-wise true where signbit is set (less than zero).

Parameters

NdArray|array|int|float $m

Return Value

NdArray|bool

final static NdArray|int|float copysign(NdArray|array|int|float $m, NdArray|array|int|float $n)

Change the sign of m-element to that of n-element, element-wise.

Parameters

NdArray|array|int|float $m
NdArray|array|int|float $n

Return Value

NdArray|int|float