Class SubSpace
java.lang.Object
org.flag4j.linalg.SubSpace
This class contains several methods for computing the subspace of a matrix.
-
Method Summary
Modifier and TypeMethodDescriptionstatic CMatrixgetColSpace(CMatrix src) Computes an orthonormal basis of the column space of a specified matrix.static MatrixgetColSpace(Matrix src) Computes an orthonormal basis of the column space of a specified matrix.static CMatrixgetLeftNullSpace(CMatrix src) Computes an orthonormal basis of the left null space of a specified matrix.static MatrixgetLeftNullSpace(Matrix src) Computes an orthonormal basis of the left null space of a specified matrix.static CMatrixgetNullSpace(CMatrix src) Computes an orthonormal basis of the null space of a specified matrix.static MatrixgetNullSpace(Matrix src) Computes an orthonormal basis of the null space of a specified matrix.static CMatrixgetRowSpace(CMatrix src) Computes an orthonormal basis of the row space of a specified matrix.static MatrixgetRowSpace(Matrix src) Computes an orthonormal basis of the row space of a specified matrix.static booleanhasEqualSpan(CMatrix src1, CMatrix src2) Checks if two sets of vectors, stored as the columns of matrices, span the same space.static booleanhasEqualSpan(Matrix src1, Matrix src2) Checks if two sets of vectors, stored as the columns of matrices, span the same space.
-
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
srcmatrix.
-
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
srcmatrix.
-
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
srcmatrix.
-
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
src1andsrc2span 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
src1andsrc2span the same space.
-