bundles / scipy latest / scipy / optimize / _trustregion_constr / projections / projections
function
scipy.optimize._trustregion_constr.projections:projections
source: /scipy/optimize/_trustregion_constr/projections.py :295
Signature
def projections ( A , method = None , orth_tol = 1e-12 , max_refin = 3 , tol = 1e-15 ) Summary
Return three linear operators related with a given matrix A.
Parameters
A: sparse array (or ndarray), shape (m, n)Matrix
Aused in the projection.method: string, optionalMethod used for compute the given linear operators. Should be one of:
'NormalEquation': The operators
will be computed using the so-called normal equation approach explained in [1]. In order to do so the Cholesky factorization of
(A A.T)is computed. Exclusive for sparse matrices.
'AugmentedSystem': The operators
will be computed using the so-called augmented system approach explained in [1]. Exclusive for sparse matrices.
'QRFactorization': Compute projections
using QR factorization. Exclusive for dense matrices.
'SVDFactorization': Compute projections
using SVD factorization. Exclusive for dense matrices.
orth_tol: float, optionalTolerance for iterative refinements.
max_refin: int, optionalMaximum number of iterative refinements.
tol: float, optionalTolerance for singular values.
Returns
Z: LinearOperator, shape (n, n)Null-space operator. For a given vector
x, the null space operator is equivalent to apply a projection matrixP = I - A.T inv(A A.T) Ato the vector. It can be shown that this is equivalent to projectxinto the null space of A.LS: LinearOperator, shape (m, n)Least-squares operator. For a given vector
x, the least-squares operator is equivalent to apply a pseudoinverse matrixpinv(A.T) = inv(A A.T) Ato the vector. It can be shown that this vectorpinv(A.T) xis the least_square solution toA.T y = x.Y: LinearOperator, shape (n, m)Row-space operator. For a given vector
x, the row-space operator is equivalent to apply a projection matrixQ = A.T inv(A A.T)to the vector. It can be shown that this vectory = Q xthe minimum norm solution ofA y = x.
Notes
Uses iterative refinements described in [1] during the computation of Z in order to cope with the possibility of large roundoff errors.
Aliases
-
scipy.optimize._trustregion_constr.equality_constrained_sqp.projections