NumPhp::signbit

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

Description

SciPhp\NdArray NumPhp::signbit( array|NdArray $m )

Parameters

$m
An array [1, 2, 3] or a NdArray.

Return Values

A SciPhp\NdArray

Examples

Example #1: Construct a signbit array

use SciPhp\NumPhp as np;

$m np::signbit([-101]);

echo 
"m\n$m";

The above example will output:

m
[true  false  false]

See Also