NdArray::signbit

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

Description

SciPhp\NdArray NdArray::signbit()

Parameters

This function has no parameters.

Return Values

A SciPhp\NdArray

Examples

Example #1: Construct a signbit array

use SciPhp\NumPhp as np;

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

echo 
"m\n$m";

The above example will output:

m
[true  false  false]

See Also