Package org.flag4j.linalg
Class SubSpace
java.lang.Object
org.flag4j.linalg.SubSpace
This class contains several methods for computing the subspace of a matrix.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CMatrix
getColSpace
(CMatrix src) Computes an orthonormal basis of the column space of a specified matrix.static Matrix
getColSpace
(Matrix src) Computes an orthonormal basis of the column space of a specified matrix.static CMatrix
getLeftNullSpace
(CMatrix src) Computes an orthonormal basis of the left null space of a specified matrix.static Matrix
getLeftNullSpace
(Matrix src) Computes an orthonormal basis of the left null space of a specified matrix.static CMatrix
getNullSpace
(CMatrix src) Computes an orthonormal basis of the null space of a specified matrix.static Matrix
getNullSpace
(Matrix src) Computes an orthonormal basis of the null space of a specified matrix.static CMatrix
getRowSpace
(CMatrix src) Computes an orthonormal basis of the row space of a specified matrix.static Matrix
getRowSpace
(Matrix src) Computes an orthonormal basis of the row space of a specified matrix.static boolean
hasEqualSpan
(CMatrix src1, CMatrix src2) Checks if two sets of vectors, stored as the columns of matrices, span the same space.static boolean
hasEqualSpan
(Matrix src1, Matrix src2) Checks if two sets of vectors, stored as the columns of matrices, span the same space.
-
Constructor Details
-
SubSpace
private SubSpace()
-
-
Method Details
-
getColSpace
-
getRowSpace
-
getNullSpace
-
getLeftNullSpace
Computes an orthonormal basis of the left null space of a specified matrix.- Parameters:
src
- Matrix to compute orthonormal basis of the left null space.- Returns:
- A matrix containing as its columns, an orthonormal basis for the left null space of the
src
matrix.
-
getColSpace
Computes an orthonormal basis of the column space of a specified matrix.- Parameters:
src
- Matrix to compute orthonormal basis of the column space.- Returns:
- A matrix containing as its columns, an orthonormal basis for the column space of the
src
matrix.
-
getRowSpace
-
getNullSpace
-
getLeftNullSpace
Computes an orthonormal basis of the left null space of a specified matrix.- Parameters:
src
- Matrix to compute orthonormal basis of the left null space.- Returns:
- A matrix containing as its columns, an orthonormal basis for the left null space of the
src
matrix.
-
hasEqualSpan
Checks if two sets of vectors, stored as the columns of matrices, span the same space. That is, if each column of both matrices can be expressed as a linear combination of the columns of the other matrix.- Parameters:
src1
- Matrix containing as its columns the first set of vectors.src2
- Matrix containing as its columns the second set of vectors.- Returns:
- True if the column vectors of
src1
andsrc2
span the same space.
-
hasEqualSpan
Checks if two sets of vectors, stored as the columns of matrices, span the same space. That is, if each column of both matrices can be expressed as a linear combination of the columns of the other matrix.- Parameters:
src1
- Matrix containing as its columns the first set of vectors.src2
- Matrix containing as its columns the second set of vectors.- Returns:
- True if the column vectors of
src1
andsrc2
span the same space.
-