Package de.labathome.trustconstr.sparse
Class SparseLinearOperator
java.lang.Object
de.labathome.trustconstr.sparse.SparseLinearOperator
Adapter from a
CSRMatrix or CSCMatrix to the existing
LinearOperator interface used throughout the algorithm. Mirrors
the role of scipy.sparse.linalg.LinearOperator produced from a
sparse matrix via aslinearoperator(A).
The LinearOperator contract is typed in terms of Matrix,
so this adapter does the double[] ↔ Matrix conversion
at the boundary on each apply.
-
Method Summary
Modifier and TypeMethodDescriptionstatic LinearOperatorstatic LinearOperatorstatic LinearOperatorstatic LinearOperator
-
Method Details
-
forMatvec
- Parameters:
a- CSR matrix- Returns:
- a
LinearOperatorthat computesy = A x
-
forMatvec
- Parameters:
a- CSC matrix- Returns:
- a
LinearOperatorthat computesy = A x
-
forRmatvec
- Parameters:
a- CSR matrix- Returns:
- a
LinearOperatorthat computesy = A^T x
-
forRmatvec
- Parameters:
a- CSC matrix- Returns:
- a
LinearOperatorthat computesy = A^T x
-