org.ejml.alg.generic
Class GenericMatrixOps
java.lang.Object
org.ejml.alg.generic.GenericMatrixOps
public class GenericMatrixOps
- extends Object
- Author:
- Peter Abeles
|
Method Summary |
static void |
copy(Matrix64F from,
Matrix64F to)
|
static boolean |
isEquivalent(Matrix64F a,
Matrix64F b,
double tol)
|
static boolean |
isEquivalentTriangle(boolean upper,
Matrix64F a,
Matrix64F b,
double tol)
|
static boolean |
isIdentity(Matrix64F a,
double tol)
Returns true if the provided matrix is has a value of 1 along the diagonal
elements and zero along all the other elements. |
static void |
setRandom(Matrix64F a,
double min,
double max,
Random rand)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenericMatrixOps
public GenericMatrixOps()
isEquivalent
public static boolean isEquivalent(Matrix64F a,
Matrix64F b,
double tol)
isIdentity
public static boolean isIdentity(Matrix64F a,
double tol)
- Returns true if the provided matrix is has a value of 1 along the diagonal
elements and zero along all the other elements.
- Parameters:
a - Matrix being inspected.tol - How close to zero or one each element needs to be.
- Returns:
- If it is within tolerance to an identity matrix.
isEquivalentTriangle
public static boolean isEquivalentTriangle(boolean upper,
Matrix64F a,
Matrix64F b,
double tol)
copy
public static void copy(Matrix64F from,
Matrix64F to)
setRandom
public static void setRandom(Matrix64F a,
double min,
double max,
Random rand)
Copyright © 2012. All Rights Reserved.