Search
Search Results
Search finished, found 43 page(s) matching the search query.
- numpy.matrix.real
...numpy.matrix.real...
- numpy.matrix.real (Python attribute, in numpy.matrix.real)
- How to contribute to the NumPy documentation
...an only come up with a rough draft. Open source is a community effort. Do your best – we’ll help fix issues. Images and real-life data make text more engaging and powerful, but be sure what you use is appropriately licensed and available. H...
- NumPy 1.10.0 Release Notes
...hen linking libraries This should, at least partially, complete user customization. np.cbrt to compute cube root for real floats np.cbrt wraps the C99 cube root function cbrt. Compared to np.power(x, 1./3.) it is well defined for negativ...
- NumPy 1.13.0 Release Notes
...t the expected behavior both according to documentation and intuitively. Now, -inf < x < inf is considered True for any real number x and all other cases fail. assert_array_ and masked arrays assert_equal hide less warnings Some warnings...
- NumPy 1.14.0 Release Notes
...oded bytes to custom converters. Using any other value (including None for system default) will switch the functions to real text IO so one receives unicode strings instead of bytes in the resulting arrays. External nose plugins are usabl...
- NumPy 1.20.0 Release Notes
...d "Complex32" corresponds to "complex64". The numpy style (new) versions, denote the full size and not the size of the real/imaginary part. (gh-16554) The operator.concat function now raises TypeError for array arguments The previous beh...
- NumPy 1.25.0 Release Notes
...ower now returns a different result for 0^{non-zero} for complex numbers. Note that the value is only defined when the real part of the exponent is larger than zero. Previously, NaN was returned unless the imaginary part was strictly zero....
- NumPy 1.5.0 Release Notes
...rray(), asarray() and other functions accept new-style buffers as input. New features Warning on casting complex to real Numpy now emits a numpy.ComplexWarning when a complex number is cast into a real number. For example: >>> x = np.ar...
- NumPy 2.0.0 Release Notes
...option for Python >=3.12. For older Python versions, f2py will still default to --backend distutils. To support this in realistic use-cases, in compile mode f2py takes a --dep flag one or many times which maps to dependency() calls in the m...
- NumPy for MATLAB users
..., 1i, 1j 1j complex numbers eps np.finfo(float).eps or np.spacing(1) distance from 1 to the next larger representable real number in double precision load data.mat io.loadmat('data.mat') Load MATLAB variables saved to the file data.mat....
- NumPy quickstart
...n, ptp, searchsorted, sort Operationschoose, compress, cumprod, cumsum, inner, ndarray.fill, imag, prod, put, putmask, real, sum Basic Statisticscov, mean, std, var Basic Linear Algebracross, dot, outer, linalg.svd, vdot Less basic...
- numpy.char.chararray
...sed array. nbytesTotal bytes consumed by the elements of the array. ndimNumber of array dimensions. newbyteorder ptp realThe real part of the array. shapeTuple of array dimensions. sizeNumber of elements in the array. stridesTuple of...
- numpy.corrcoef
...not be Hermitian, the diagonal elements may not be 1, and the elements may not satisfy the inequality abs(a) <= 1. The real and imaginary parts are clipped to the interval [-1, 1] in an attempt to improve on that situation but is not much...
- numpy.linalg.cholesky
...-triangular, U is upper-triangular, and .H is the conjugate transpose operator (which is the ordinary transpose if a is real-valued). a must be Hermitian (symmetric if real-valued) and positive-definite. No checking is performed to verify w...
- numpy.linalg.eig
...ered. The resulting array will be of complex type, unless the imaginary part is zero in which case it will be cast to a real type. When a is real the resulting eigenvalues will be real (0 imaginary part) or occur in conjugate pairs eigenve...
- numpy.linalg.eigh
...alg.eigh(a, UPLO='L')[source] Return the eigenvalues and eigenvectors of a complex Hermitian (conjugate symmetric) or a real symmetric matrix. Returns two objects, a 1-D array containing the eigenvalues of a, and a 2-D square array or matri...
- numpy.linalg.eigvals
...difference between eigvals and eig: the eigenvectors aren’t returned. Parameters: a(…, M, M) array_likeA complex- or real-valued matrix whose eigenvalues will be computed. Returns: w(…, M,) ndarrayThe eigenvalues, each repeated accor...
- numpy.linalg.eigvalsh
...numpy.linalg.eigvalsh linalg.eigvalsh(a, UPLO='L')[source] Compute the eigenvalues of a complex Hermitian or real symmetric matrix. Main difference from eigh: the eigenvectors are not computed. Parameters: a(…, M, M) array_like...
- numpy.linalg.matrix_rank
...en tol is set to S.max() * max(M, N) * eps. hermitianbool, optionalIf True, A is assumed to be Hermitian (symmetric if real-valued), enabling a more efficient method for finding singular values. Defaults to False. rtol(…) array_like, floa...
- numpy.linalg.pinv
...inst the stack of matrices. Default: 1e-15. hermitianbool, optionalIf True, a is assumed to be Hermitian (symmetric if real-valued), enabling a more efficient method for finding singular values. Defaults to False. rtol(…) array_like of fl...
- numpy.linalg.qr
...orthonormal columns. When mode = ‘complete’ the result is an orthogonal/unitary matrix depending on whether or not a is real/complex. The determinant may be either +/- 1 in that case. In case the number of dimensions in the input array is g...
- numpy.linalg.slogdet
...A namedtuple with the following attributes: sign(…) array_likeA number representing the sign of the determinant. For a real matrix, this is 1, 0, or -1. For a complex matrix, this is a complex number with absolute value 1 (i.e., it is on t...
- numpy.linalg.svd
.... When a is higher-dimensional, SVD is applied in stacked mode as explained below. Parameters: a(…, M, N) array_likeA real or complex array with a.ndim >= 2. full_matricesbool, optionalIf True (default), u and vh have the shapes (..., M,...
- numpy.matrix
...nsposed array. nbytesTotal bytes consumed by the elements of the array. ndimNumber of array dimensions. newbyteorder realThe real part of the array. shapeTuple of array dimensions. sizeNumber of elements in the array. stridesTuple of...
- numpy.matrix.astype
...n by dtype, order. Raises: ComplexWarningWhen casting from complex to float or int. To avoid this, one should use a.real.astype(t). Examples >>> import numpy as np >>> x = np.array([1, 2, 2.5]) >>> x array([1. , 2. , 2.5]) >>> x...
- numpy.matrix.byteswap
...presentation by returning a byteswapped array, optionally swapped in-place. Arrays of byte-strings are not swapped. The real and imaginary parts of a complex number are swapped individually. Parameters: inplacebool, optionalIf True, swap...
- numpy.matrix.getH
...matrix.getH()[source] Returns the (complex) conjugate transpose of self. Equivalent to np.transpose(self) if self is real-valued. Parameters: None Returns: retmatrix objectcomplex conjugate transpose of self Examples >>> x = np....
- numpy.matrix.H
...erty property matrix.H Returns the (complex) conjugate transpose of self. Equivalent to np.transpose(self) if self is real-valued. Parameters: None Returns: retmatrix objectcomplex conjugate transpose of self Examples >>> x = np....
- numpy.matrix.real
...numpy.matrix.real...
- numpy.polynomial.chebyshev.chebcompanion
...vides better eigenvalue estimates than the unscaled case and for basis polynomials the eigenvalues are guaranteed to be real if numpy.linalg.eigvalsh is used to obtain them. Parameters: carray_like1-D array of Chebyshev series coefficient...
- numpy.polynomial.chebyshev.chebroots
...c1-D array_like1-D array of coefficients. Returns: outndarrayArray of the roots of the series. If all the roots are real, then out is also real, otherwise it is complex. See also numpy.polynomial.polynomial.polyroots numpy.polynom...
- numpy.polynomial.hermite.hermcompanion
...vides better eigenvalue estimates than the unscaled case and for basis polynomials the eigenvalues are guaranteed to be real if numpy.linalg.eigvalsh is used to obtain them. Parameters: carray_like1-D array of Hermite series coefficients...
- numpy.polynomial.hermite.hermroots
...c1-D array_like1-D array of coefficients. Returns: outndarrayArray of the roots of the series. If all the roots are real, then out is also real, otherwise it is complex. See also numpy.polynomial.polynomial.polyroots numpy.polynom...
- numpy.polynomial.hermite_e.hermecompanion
...vides better eigenvalue estimates than the unscaled case and for basis polynomials the eigenvalues are guaranteed to be real if numpy.linalg.eigvalsh is used to obtain them. Parameters: carray_like1-D array of HermiteE series coefficients...
- numpy.polynomial.hermite_e.hermeroots
...c1-D array_like1-D array of coefficients. Returns: outndarrayArray of the roots of the series. If all the roots are real, then out is also real, otherwise it is complex. See also numpy.polynomial.polynomial.polyroots numpy.polynom...
- numpy.polynomial.laguerre.lagroots
...c1-D array_like1-D array of coefficients. Returns: outndarrayArray of the roots of the series. If all the roots are real, then out is also real, otherwise it is complex. See also numpy.polynomial.polynomial.polyroots numpy.polynom...
- numpy.polynomial.legendre.legcompanion
...vides better eigenvalue estimates than the unscaled case and for basis polynomials the eigenvalues are guaranteed to be real if numpy.linalg.eigvalsh is used to obtain them. Parameters: carray_like1-D array of Legendre series coefficients...
- numpy.polynomial.legendre.legroots
...c1-D array_like1-D array of coefficients. Returns: outndarrayArray of the roots of the series. If all the roots are real, then out is also real, otherwise it is complex. See also numpy.polynomial.polynomial.polyroots numpy.polynom...
- numpy.polynomial.polynomial.polyroots
...1-D array of polynomial coefficients. Returns: outndarrayArray of the roots of the polynomial. If all the roots are real, then out is also real, otherwise it is complex. See also numpy.polynomial.chebyshev.chebroots numpy.polynomi...
- numpy.recarray
...sed array. nbytesTotal bytes consumed by the elements of the array. ndimNumber of array dimensions. newbyteorder ptp realThe real part of the array. shapeTuple of array dimensions. sizeNumber of elements in the array. stridesTuple of...
- The N-dimensional array (
ndarray
)...rray.dtype Data-type of the array's elements. Other attributes ndarray.T View of the transposed array. ndarray.real The real part of the array. ndarray.imag The imaginary part of the array. ndarray.flat A 1-D iterator over the ar...
- Using Python as glue
...mpty(a.shape[0], np.complex64) cdef double complex[:] c = out.ravel() for i in range(c.shape[0]): c[i].real = a[i].real + b[i].real c[i].imag = a[i].imag + b[i].imag return out This module shows use of the ci...