This is a pre-release version (2.5.0.dev0+git20251130.2de293a). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / lib / _scimath_impl / _fix_int_lt_zero

function

numpy.lib._scimath_impl:_fix_int_lt_zero

source: build-install/usr/lib/python3.14/site-packages/numpy/lib/_scimath_impl.py :125

Signature

def   _fix_int_lt_zero ( x )

Summary

Convert x to double if it has real, negative components.

Extended Summary

Otherwise, output is just the array version of the input (via asarray).

Parameters

x : array_like

Returns

: array

Examples

import numpy as np
np.lib.scimath._fix_int_lt_zero([1,2])
np.lib.scimath._fix_int_lt_zero([-1,2])

Aliases

  • numpy.lib._scimath_impl._fix_int_lt_zero