|
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.AreMatrices
public class AreMatrices
This class collects the boolean operators that take two or more matrices or vectors and compare their properties.
| Method Summary | |
|---|---|
static boolean |
equal(Matrix A1,
Matrix A2,
double epsilon)
Check the equality of two matrices up to a precision. |
static boolean |
equal(Vector v1,
Vector v2,
double epsilon)
Check if two vectors are equal up to a precision. |
static boolean |
orthogonal(Vector[] v,
double epsilon)
Check if a set of vectors are orthogonal. |
static boolean |
orthogonal(Vector v1,
Vector v2,
double epsilon)
Check if two vectors are orthogonal. |
static boolean |
orthogonormal(Vector[] v,
double epsilon)
Check if a set of vectors are orthogonormal. |
static boolean |
orthogonormal(Vector v1,
Vector v2,
double epsilon)
Check if two vectors are orthogonormal. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean equal(Matrix A1,
Matrix A2,
double epsilon)
Two matrices are equal iff
A1 - a matrixA2 - a matrixepsilon - a precision parameter: when a number |x| ≤ ε, it is considered 0
true iff all entries are equal, entry by entry
public static boolean equal(Vector v1,
Vector v2,
double epsilon)
v1 - a vectorv2 - a vectorepsilon - a precision parameter: when a number |x| ≤ ε, it is considered 0
true iff v1 - v2 is a zero vector, up to a precision
public static boolean orthogonal(Vector v1,
Vector v2,
double epsilon)
v1 - a vectorv2 - a vectorepsilon - a precision parameter: when a number |x| ≤ ε, it is considered 0
true iff
v1 ∙ v2 == 0
public static boolean orthogonal(Vector[] v,
double epsilon)
v - a set of vectorsepsilon - a precision parameter: when a number |x| ≤ ε, it is considered 0
true iff
v1 ∙ v2 == 0 for any v1, v2 in v
public static boolean orthogonormal(Vector v1,
Vector v2,
double epsilon)
v1 - a vectorv2 - a vectorepsilon - a precision parameter: when a number |x| ≤ ε, it is considered 0
true iff {v1, v2} are orthogonal and
||v1|| = ||v2|| = 1
public static boolean orthogonormal(Vector[] v,
double epsilon)
v - a set of vectorsepsilon - a precision parameter: when a number |x| ≤ ε, it is considered 0
true iff {v1, v2} are orthogonormal, for any v1, v2 in v
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||