Package org.ejml.sparse.csc
Class MatrixFeatures_DSCC
- java.lang.Object
-
- org.ejml.sparse.csc.MatrixFeatures_DSCC
-
public class MatrixFeatures_DSCC extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MatrixFeatures_DSCC()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanhasUncountable(org.ejml.data.DMatrixSparseCSC A)static booleanisEquals(org.ejml.data.DMatrixSparseCSC a, org.ejml.data.DMatrixSparseCSC b)static booleanisEquals(org.ejml.data.DMatrixSparseCSC a, org.ejml.data.DMatrixSparseCSC b, double tol)static booleanisEqualsSort(org.ejml.data.DMatrixSparseCSC a, org.ejml.data.DMatrixSparseCSC b, double tol)static booleanisIdenticalSort(org.ejml.data.DMatrixSparseCSC a, org.ejml.data.DMatrixSparseCSC b, double tol)static booleanisIdentity(org.ejml.data.DMatrixSparseCSC A, double tol)static booleanisLowerTriangle(org.ejml.data.DMatrixSparseCSC A, int hessenberg, double tol)Checks to see if a matrix is lower triangular or Hessenberg.static booleanisOrthogonal(org.ejml.data.DMatrixSparseCSC Q, double tol)Checks to see if a matrix is orthogonal or isometric.static booleanisPositiveDefinite(org.ejml.data.DMatrixSparseCSC A)Checks to see if the matrix is positive definite.static booleanisSameStructure(org.ejml.data.DMatrixSparseCSC a, org.ejml.data.DMatrixSparseCSC b)Checks to see if the two matrices have the same shape and same pattern of non-zero elementsstatic booleanisSymmetric(org.ejml.data.DMatrixSparseCSC A, double tol)Checks to see if the matrix is symmetric to within tolerance.static booleanisTranspose(org.ejml.data.DMatrixSparseCSC A, org.ejml.data.DMatrixSparseCSC B, double tol)static booleanisVector(org.ejml.data.DMatrixSparseCSC a)Returns true if the input is a vectorstatic booleanisZeros(org.ejml.data.DMatrixSparseCSC A, double tol)
-
-
-
Method Detail
-
isEquals
public static boolean isEquals(org.ejml.data.DMatrixSparseCSC a, org.ejml.data.DMatrixSparseCSC b)
-
isEquals
public static boolean isEquals(org.ejml.data.DMatrixSparseCSC a, org.ejml.data.DMatrixSparseCSC b, double tol)
-
isEqualsSort
public static boolean isEqualsSort(org.ejml.data.DMatrixSparseCSC a, org.ejml.data.DMatrixSparseCSC b, double tol)
-
isIdenticalSort
public static boolean isIdenticalSort(org.ejml.data.DMatrixSparseCSC a, org.ejml.data.DMatrixSparseCSC b, double tol)
-
isSameStructure
public static boolean isSameStructure(org.ejml.data.DMatrixSparseCSC a, org.ejml.data.DMatrixSparseCSC b)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
public static boolean hasUncountable(org.ejml.data.DMatrixSparseCSC A)
-
isZeros
public static boolean isZeros(org.ejml.data.DMatrixSparseCSC A, double tol)
-
isIdentity
public static boolean isIdentity(org.ejml.data.DMatrixSparseCSC A, double tol)
-
isLowerTriangle
public static boolean isLowerTriangle(org.ejml.data.DMatrixSparseCSC A, int hessenberg, double tol)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
public static boolean isTranspose(org.ejml.data.DMatrixSparseCSC A, org.ejml.data.DMatrixSparseCSC B, double tol)
-
isVector
public static boolean isVector(org.ejml.data.DMatrixSparseCSC a)
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
public static boolean isSymmetric(org.ejml.data.DMatrixSparseCSC A, double tol)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
public static boolean isPositiveDefinite(org.ejml.data.DMatrixSparseCSC A)
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
public static boolean isOrthogonal(org.ejml.data.DMatrixSparseCSC Q, double tol)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.
-
-