bundles / scipy 1.17.1 / scipy / linalg / _decomp_svd / orth
function
scipy.linalg._decomp_svd:orth
Signature
def orth ( A , rcond = None ) Summary
Construct an orthonormal basis for the range of A using SVD
Extended Summary
The documentation is written assuming array arguments are of specified "core" shapes. However, array argument(s) of this function may have additional "batch" dimensions prepended to the core shape. In this case, the array is treated as a batch of lower-dimensional slices; see linalg_batch for details. Note that calls with zero-size batches are unsupported and will raise a ValueError.
Parameters
A: (M, N) array_likeInput array
rcond: float, optionalRelative condition number. Singular values
ssmaller thanrcond * max(s)are considered zero. Default: floating point eps * max(M,N).
Returns
Q: (M, K) ndarrayOrthonormal basis for the range of A. K = effective rank of A, as determined by rcond
Examples
import numpy as np from scipy.linalg import orth A = np.array([[2, 0, 0], [0, 5, 0]]) # rank 2 array orth(A) orth(A.T)✓
See also
- null_space
Matrix null space
- svd
Singular value decomposition of a matrix
Aliases
-
scipy.linalg.orth