Search
Search Results
Search finished, found 31 page(s) matching the search query.
- numpy.floor
...NumPy reference Routines and objects by topic Mathematical functions numpy.floor...
- numpy.floor_divide
...NumPy reference Routines and objects by topic Mathematical functions numpy.floor_divide...
- numpy.floor (Python data, in numpy.floor)
- NumPy 1.17.0 Release Notes
...using divmod Starting in version 1.12.0, numpy incorrectly returned a negatively signed zero when using the divmod and floor_divide functions when the result was zero. For example: >>> np.zeros(10)//1 array([-0., -0., -0., -0., -0., -0., -...
- NumPy 1.20.0 Release Notes
...1.0, 0.0) Invalid Invalid and Dividebyzero nan, nan inf, nan Yes np.fmod(1.0, 0.0) Invalid Invalid nan nan No? Yes np.floor_divide(1.0, 0.0) Invalid Dividebyzero nan inf Yes np.remainder(1.0, 0.0) Invalid Invalid nan nan Yes (gh-1616...
- NumPy 1.22.0 Release Notes
...newer -ffp-exception-behavior=strict) was attempted in NumPy 1.21, but was effectively never used. (gh-19479) Removed floor division support for complex types Floor division of complex types will now result in a TypeError >>> a = np.arang...
- NumPy 1.24 Release Notes
...improvements for all SIMD kernels implemented using the universal intrinsics, including the following operations: rint, floor, trunc, ceil, sqrt, absolute, square, reciprocal, tanh, sin, cos, equal, not_equal, greater, greater_equal, less,...
- NumPy 1.4.0 Release Notes
...now works with sorted arrays containing nan values. Complex division has been made more resistant to overflow. Complex floor division has been made more resistant to overflow. Deprecations The following functions are deprecated: corr...
- NumPy 2.1.0 Release Notes
...s now a ufunc it has a less precise signature. This is due to the limitations of ufunc’s typing stub. (gh-26313) numpy.floor, numpy.ceil, and numpy.trunc now won’t perform casting to a floating dtype for integer and boolean dtype input arr...
- NumPy quickstart
...g_axis, argmax, argmin, argsort, average, bincount, ceil, clip, conj, corrcoef, cov, cross, cumprod, cumsum, diff, dot, floor, inner, invert, lexsort, max, maximum, mean, median, min, minimum, nonzero, outer, prod, re, round, sort, std, sum...
- numpy.around
...imals. around is an alias of round. See also ndarray.roundequivalent method roundalias for this function ceil, fix, floor, rint, trunc...
- numpy.ceil
...ocs. Returns: yndarray or scalarThe ceiling of each element in x. This is a scalar if x is a scalar. See also floor, trunc, rint, fix Examples >>> import numpy as np >>> a = np.array([-1.7, -1.5, -0.2, 0.2, 1.5, 1.7, 2.0]) >>>...
- numpy.divmod
...wargsFor other keyword-only arguments, see the ufunc docs. Returns: out1ndarrayElement-wise quotient resulting from floor division. This is a scalar if both x1 and x2 are scalars. out2ndarrayElement-wise remainder from floor division....
- numpy.fix
...upplied the result is stored there. The return value out is then a reference to that array. See also rint, trunc, floor, ceil aroundRound to given number of decimals Examples >>> import numpy as np >>> np.fix(3.14) 3.0 >>> np.fix(3...
- numpy.floor
...NumPy reference Routines and objects by topic Mathematical functions numpy.floor...
- numpy.floor_divide
...NumPy reference Routines and objects by topic Mathematical functions numpy.floor_divide...
- numpy.loadtxt
...cessing functions to each column: >>> s = StringIO("1.618, 2.296\n3.141, 4.669\n") >>> conv = { ... 0: lambda x: np.floor(float(x)), # conversion fn for column 0 ... 1: lambda x: np.ceil(float(x)), # conversion fn for column 1 ......
- numpy.ma.around
...imals. around is an alias of round. See also ndarray.roundequivalent method roundalias for this function ceil, fix, floor, rint, trunc...
- numpy.ma.MaskedArray.__ifloordiv__
...ray objects Masked arrays Constants of the numpy.ma module numpy.ma.MaskedArray.__ifloordiv__...
- numpy.mod
...ure]) = <ufunc 'remainder'> Returns the element-wise remainder of division. Computes the remainder complementary to the floor_divide function. It is equivalent to the Python modulus operator x1 % x2 and has the same sign as the divisor x2....
- numpy.remainder
...ure]) = <ufunc 'remainder'> Returns the element-wise remainder of division. Computes the remainder complementary to the floor_divide function. It is equivalent to the Python modulus operator x1 % x2 and has the same sign as the divisor x2....
- numpy.rint
...ndarray or scalarOutput array is same shape and type as x. This is a scalar if x is a scalar. See also fix, ceil, floor, trunc Notes For values exactly halfway between rounded decimal values, NumPy rounds to the nearest even value....
- numpy.round
...ounding a float is a float. See also ndarray.roundequivalent method aroundan alias for this function ceil, fix, floor, rint, trunc Notes For values exactly halfway between rounded decimal values, NumPy rounds to the nearest even v...
- numpy.trunc
...s: yndarray or scalarThe truncated value of each element in x. This is a scalar if x is a scalar. See also ceil, floor, rint, fix Examples >>> import numpy as np >>> a = np.array([-1.7, -1.5, -0.2, 0.2, 1.5, 1.7, 2.0]) >>> np.trunc...
- numpy.floor_divide (Python data, in numpy.floor_divide)
- numpy.ma.MaskedArray.__floordiv__ (Python method, in numpy.ma.MaskedArray.__floordiv__)
- numpy.ma.MaskedArray.__ifloordiv__ (Python method, in numpy.ma.MaskedArray.__ifloordiv__)
- numpy.ma.MaskedArray.__rfloordiv__ (Python method, in numpy.ma.MaskedArray.__rfloordiv__)
- numpy.ndarray.__floordiv__ (Python method, in numpy.ndarray.__floordiv__)
- numpy.ndarray.__ifloordiv__ (Python method, in numpy.ndarray.__ifloordiv__)
- Using the convenience classes
...Powers: >>> p**2 Polynomial([ 1., 4., 10., 12., 9.], domain=[-1., 1.], window=[-1., 1.], symbol='x') Division: Floor division, ‘//’, is the division operator for the polynomial classes, polynomials are treated like integers in this...