Package org.ejml.sparse.csc
Class MatrixFeatures_FSCC
java.lang.Object
org.ejml.sparse.csc.MatrixFeatures_FSCC
@Generated("org.ejml.sparse.csc.MatrixFeatures_DSCC")
public class MatrixFeatures_FSCC
extends Object
Functions for computing the features/properties of matrices.
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
static boolean
static boolean
isEquals
(FMatrixSparseCSC a, FMatrixSparseCSC b, float tol) static boolean
isEqualsSort
(FMatrixSparseCSC a, FMatrixSparseCSC b, float tol) static boolean
isIdenticalSort
(FMatrixSparseCSC a, FMatrixSparseCSC b, float tol) static boolean
isIdentity
(FMatrixSparseCSC A, float tol) static boolean
isLowerTriangle
(FMatrixSparseCSC A, int hessenberg, float tol) Checks to see if a matrix is lower triangular or Hessenberg.static boolean
isOrthogonal
(FMatrixSparseCSC Q, float tol) Checks to see if a matrix is orthogonal or isometric.static boolean
Checks to see if the matrix is positive definite.static boolean
Checks to see if the two matrices have the same shape and same pattern of non-zero elementsstatic boolean
isSymmetric
(FMatrixSparseCSC A, float tol) Checks to see if the matrix is symmetric to within tolerance.static boolean
isTranspose
(FMatrixSparseCSC A, FMatrixSparseCSC B, float tol) static boolean
Returns true if the input is a vectorstatic boolean
isZeros
(FMatrixSparseCSC A, float tol)
-
Method Details
-
isEquals
-
isEquals
-
isEqualsSort
-
isIdenticalSort
-
isSameStructure
Checks to see if the two matrices have the same shape and same pattern of non-zero elements- Parameters:
a
- Matrixb
- Matrix- Returns:
- true if the structure is the same
-
hasUncountable
-
isZeros
-
isIdentity
-
isLowerTriangle
Checks to see if a matrix is lower triangular or Hessenberg. A Hessenberg matrix of degree N has the following property:
aij ≤ 0 for all i < j+N
A triangular matrix is a Hessenberg matrix of degree 0. Only the upper most diagonal elements are explicitly checked to see if they are non-zero- Parameters:
A
- Matrix being tested. Not modified.hessenberg
- The degree of being hessenberg.tol
- How not zero diagonal elements must be.- Returns:
- If it is an upper triangular/hessenberg matrix or not.
-
isTranspose
-
isVector
Returns true if the input is a vector- Parameters:
a
- A matrix or vector- Returns:
- true if it's a vector. Column or row.
-
isSymmetric
Checks to see if the matrix is symmetric to within tolerance.- Parameters:
A
- Matrix being tested. Not modified.tol
- Tolerance that defines how similar two values must be to be considered identical- Returns:
- true if symmetric or false if not
-
isPositiveDefinite
Checks to see if the matrix is positive definite.
xT A x > 0
for all x where x is a non-zero vector and A is a symmetric matrix.- Parameters:
A
- square symmetric matrix. Not modified.- Returns:
- True if it is positive definite and false if it is not.
-
isOrthogonal
Checks to see if a matrix is orthogonal or isometric.
- Parameters:
Q
- The matrix being tested. Not modified.tol
- Tolerance.- Returns:
- True if it passes the test.
-