Search
Search Results
Search finished, found 28 page(s) matching the search query.
- numpy.remainder
...NumPy reference Routines and objects by topic Mathematical functions numpy.remainder...
- numpy.remainder (Python data, in numpy.remainder)
- NumPy 1.11.0 Release Notes
...ng was raised and the dimensions were already preserved. % and // operators These operators are implemented with the remainder and floor_divide functions respectively. Those functions are now based around fmod and are computed together s...
- NumPy 1.13.0 Release Notes
...lement divmod when called on numpy arrays. np.divmod(x, y) calculates a result equivalent to (np.floor_divide(x, y), np.remainder(x, y)) but is approximately twice as fast as calling the functions separately. np.isnat ufunc tests for NaT...
- NumPy 1.16.0 Release Notes
...read after skiprows, as in numpy.genfromtxt. modulus operator support added for np.timedelta64 operands The modulus (remainder) operator is now supported for two operands of type np.timedelta64. The operands may have different units and...
- NumPy 1.20.0 Release Notes
...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-16161) np.linspace on integers now uses floor When using a int...
- NumPy 1.25.0 Release Notes
...75) Cython long_t and ulong_t removed long_t and ulong_t were aliases for longlong_t and ulonglong_t and confusing (a remainder from of Python 2). This change may lead to the errors: 'long_t' is not a type identifier 'ulong_t' is not a t...
- NumPy C code explanations
...rly handled when copies and/or casts are necessary. breaking up the inner 1-D loop into bufsize chunks (with a possible remainder). Again, the hardware error flags are checked at the end of each 1-D loop. Final output manipulation Ufunc...
- numpy.divmod
...asting='same_kind', order='K', dtype=None, subok=True[, signature]) = <ufunc 'divmod'> Return element-wise quotient and remainder simultaneously. np.divmod(x, y) is equivalent to (x // y, x % y), but faster because it avoids redundant work....
- numpy.floor_divide
...smaller or equal to the division of the inputs. It is equivalent to the Python // operator and pairs with the Python % (remainder), function so that a = a % b + b * (a // b) up to roundoff. Parameters: x1array_likeNumerator. x2array_like...
- numpy.fmod
...re=True, casting='same_kind', order='K', dtype=None, subok=True[, signature]) = <ufunc 'fmod'> Returns the element-wise remainder of division. This is the NumPy implementation of the C library function fmod, the remainder has the same sign...
- numpy.mod
- numpy.modf
- numpy.poly1d
...alent to p.c[-(i+1)]): >>> p[1] 2 Polynomials can be added, subtracted, multiplied, and divided (returns quotient and remainder): >>> p * p poly1d([ 1, 4, 10, 12, 9]) >>> (p**3 + 4) / p (poly1d([ 1., 4., 10., 12., 9.]), poly1d([4.])...
- numpy.polydiv
...numpy.polydiv numpy.polydiv(u, v)[source] Returns the quotient and remainder of polynomial division. Note This forms part of the old polynomial API. Since version 1.4, the new polynomial...
- numpy.polynomial.chebyshev.chebdiv
...hebdiv polynomial.chebyshev.chebdiv(c1, c2)[source] Divide one Chebyshev series by another. Returns the quotient-with-remainder of two Chebyshev series c1 / c2. The arguments are sequences of coefficients from lowest order “term” to high...
- numpy.polynomial.hermite.hermdiv
- numpy.polynomial.hermite_e.hermediv
...ermediv polynomial.hermite_e.hermediv(c1, c2)[source] Divide one Hermite series by another. Returns the quotient-with-remainder of two Hermite series c1 / c2. The arguments are sequences of coefficients from lowest order “term” to highes...
- numpy.polynomial.laguerre.lagdiv
- numpy.polynomial.legendre.legdiv
...re.legdiv polynomial.legendre.legdiv(c1, c2)[source] Divide one Legendre series by another. Returns the quotient-with-remainder of two Legendre series c1 / c2. The arguments are sequences of coefficients from lowest order “term” to highe...
- numpy.polynomial.polynomial.polydiv
...ial.polydiv polynomial.polynomial.polydiv(c1, c2)[source] Divide one polynomial by another. Returns the quotient-with-remainder of two polynomials c1 / c2. The arguments are sequences of coefficients, from lowest order term to highest, e....
- numpy.remainder
...NumPy reference Routines and objects by topic Mathematical functions numpy.remainder...
- numpy.ufunc.ntypes
...>>> import numpy as np >>> np.add.ntypes 18 >>> np.multiply.ntypes 18 >>> np.power.ntypes 17 >>> np.exp.ntypes 7 >>> np.remainder.ntypes 14...
- numpy.ufunc.types
...FF->F', 'DD->D', 'GG->G', 'OO->O'] >>> np.exp.types ['f->f', 'd->d', 'g->g', 'F->F', 'D->D', 'G->G', 'O->O'] >>> np.remainder.types ['bb->b', 'BB->B', 'hh->h', 'HH->H', 'ii->i', 'II->I', 'll->l', 'LL->L', 'qq->q', 'QQ->Q', 'ff->f', 'dd-...
- NumPy: the absolute basics for beginners
- Indexing on
ndarrays
...ing dimension) with index values i, i + k, …, i + (m - 1) k where \(m = q + (r\neq0)\) and q and r are the quotient and remainder obtained by dividing j - i by k: j - i = q k + r, so that i + (m - 1) k < j. For example: >>> x = np.array([0,...
- Iterating over arrays
- Using the convenience classes