|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.numericalmethod.suanshu.matrix.doubles.IsMatrix
public class IsMatrix
This class collects the boolean operators that take a matrix or vector and check if it satisfies a certain property.
| Method Summary | |
|---|---|
static boolean |
diagonal(Matrix A,
double epsilon)
Check if a square matrix is a diagonal matrix. |
static boolean |
idempotent(Matrix A)
Check if a matrix is idempotent. |
static boolean |
identity(Matrix A,
double epsilon)
Check if a diagonal matrix is an identity matrix. |
static boolean |
lowerBidiagonal(Matrix A,
double epsilon)
Check if a matrix is lower bidiagonal. |
static boolean |
lowerTriangular(Matrix A,
double epsilon)
Check if a matrix is lower triangular. |
static boolean |
magicSquare(Matrix A)
Deprecated. Not supported yet. |
static boolean |
orthogonal(Matrix A,
double epsilon)
Check if a matrix is orthogonal, up to a threshold. |
static boolean |
positiveDefinite(Matrix A)
Check if a square matrix is positive definite. |
static boolean |
positiveSemiDefinite(Matrix A)
Deprecated. Not supported yet. |
static boolean |
quasiTriangular(Matrix A,
double epsilon)
Check if a matrix is quasi (upper) triangular. |
static boolean |
reducedRowEchelonForm(Matrix A,
double epsilon)
Check if a matrix is in the reduced row echelon form. |
static boolean |
rowEchelonForm(Matrix A,
double epsilon)
Check if a matrix is in the row echelon form. |
static boolean |
scalar(Matrix A)
Deprecated. Not supported yet. |
static boolean |
singular(Matrix A,
double epsilon)
Dimension if a square matrix is singular, i.e having no inverse. |
static boolean |
skewSymmetric(Matrix A)
Check if a matrix is skew symmetric. |
static boolean |
symmetric(Matrix A)
Check if a matrix is symmetric. |
static boolean |
symmetricPositiveDefinite(Matrix A)
Check if a square matrix is symmetric and positive definite. |
static boolean |
tridiagonal(Matrix A,
double epsilon)
Check if a matrix is tridiagonal. |
static boolean |
upperBidiagonal(Matrix A,
double epsilon)
Check if a matrix is upper bidiagonal. |
static boolean |
upperTriangular(Matrix A,
double epsilon)
Check if a matrix is upper triangular. |
static boolean |
zero(Vector v,
double epsilon)
Check if a vector is a zero vector, i.e., all its entries are 0, up to a precision. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean symmetric(Matrix A)
A - a matrix
true iff A.t() = Apublic static boolean skewSymmetric(Matrix A)
A - a matrix
true iff A.t() = -Apublic static boolean idempotent(Matrix A)
A - a matrix
true iff A = A %*% A or A = A2
public static boolean orthogonal(Matrix A,
double epsilon)
A - a matrixepsilon - a precision parameter: when a number |x| ≤ ε, it is considered 0
true iff A.multiply(A.t()).equal(A.ONE())@Deprecated public static boolean magicSquare(Matrix A)
A - a matrix
true iff A is a square matrix having distinct positive integers,
arranged such that the sums of the numbers in any rows, columns, or diagonals are equal
public static boolean singular(Matrix A,
double epsilon)
A - a matrixepsilon - a precision parameter: when a number |x| ≤ ε, it is considered 0
true iff A-1 does not exist
public static boolean diagonal(Matrix A,
double epsilon)
A - a matrixepsilon - a precision parameter: when a number |x| ≤ ε, it is considered 0
true iff A is square and
Aij=0, for all i != j
public static boolean identity(Matrix A,
double epsilon)
A - a matrixepsilon - a precision parameter: when a number |x| ≤ ε, it is considered 0
true iff A is square, and
Aij=0 for all i != j,
and Aij=1, for all i == j
public static boolean upperTriangular(Matrix A,
double epsilon)
A - a matrixepsilon - a precision parameter: when a number |x| ≤ ε, it is considered 0
true iff matrix is upper triangular
public static boolean lowerTriangular(Matrix A,
double epsilon)
A - a matrixepsilon - a precision parameter: when a number |x| ≤ ε, it is considered 0
true iff matrix is lower triangular
public static boolean quasiTriangular(Matrix A,
double epsilon)
A - a matrixepsilon - a precision parameter: when a number |x| ≤ ε, it is considered 0
true iff matrix is quasi (upper) triangular
public static boolean upperBidiagonal(Matrix A,
double epsilon)
A - a matrixepsilon - a precision parameter: when a number |x| ≤ ε, it is considered 0
true iff matrix is upper bidiagonal
public static boolean lowerBidiagonal(Matrix A,
double epsilon)
A - a matrixepsilon - a precision parameter: when a number |x| ≤ ε, it is considered 0
true iff matrix is lower bidiagonal
public static boolean tridiagonal(Matrix A,
double epsilon)
A - a matrixepsilon - a precision parameter: when a number |x| ≤ ε, it is considered 0
true iff matrix is tridiagonal
public static boolean rowEchelonForm(Matrix A,
double epsilon)
A - a matrixepsilon - a precision parameter: when a number |x| ≤ ε, it is considered 0
true iff matrix is in row echelon form
public static boolean reducedRowEchelonForm(Matrix A,
double epsilon)
A - a matrixepsilon - a precision parameter: when a number |x| ≤ ε, it is considered 0
true iff the matrix is in reduced row echelon form@Deprecated public static boolean scalar(Matrix A)
A - a matrix
true iff aij=0 for all i != j,
and aij=some constant, for all i == jpublic static boolean symmetricPositiveDefinite(Matrix A)
A - a matrix
true iff A is symmetric, and
ztMz > 0, for all non-zero vectors z with real entries (z ∈ Rn)public static boolean positiveDefinite(Matrix A)
A real matrix A is positive definite iff the symmetric part
Asymmetric = 1/2 * (A + At)
is symmetric positive definite.
A - a matrix
true iff A satisfies ztMz > 0, for all non-zero vectors z with real entries (z ∈ Rn)@Deprecated public static boolean positiveSemiDefinite(Matrix A)
A - a matrix
true iff A satisfies ztMz >= 0, for all non-zero vectors z with real entries (z ∈ Rn)
public static boolean zero(Vector v,
double epsilon)
v - a vectorepsilon - a precision parameter: when a number |x| ≤ ε, it is considered 0
true iff v is a zero vector
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||