org.ejml.alg.generic
Class GenericMatrixOps
- java.lang.Object
-
- org.ejml.alg.generic.GenericMatrixOps
-
public class GenericMatrixOps extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description GenericMatrixOps()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidcopy(RealMatrix64F from, RealMatrix64F to)static booleanisEquivalent(RealMatrix64F a, RealMatrix64F b, double tol)static booleanisEquivalentTriangle(boolean upper, RealMatrix64F a, RealMatrix64F b, double tol)static booleanisIdentity(RealMatrix64F 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 voidsetRandom(RealMatrix64F a, double min, double max, java.util.Random rand)
-
-
-
Method Detail
-
isEquivalent
public static boolean isEquivalent(RealMatrix64F a, RealMatrix64F b, double tol)
-
isIdentity
public static boolean isIdentity(RealMatrix64F 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, RealMatrix64F a, RealMatrix64F b, double tol)
-
copy
public static void copy(RealMatrix64F from, RealMatrix64F to)
-
setRandom
public static void setRandom(RealMatrix64F a, double min, double max, java.util.Random rand)
-
-
DMelt 3.0 © DataMelt by jWork.ORG