Class GenericMatrixOps_F32


  • public class GenericMatrixOps_F32
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void copy​(org.ejml.data.FMatrix from, org.ejml.data.FMatrix to)  
      static boolean isEquivalent​(org.ejml.data.FMatrix a, org.ejml.data.FMatrix b, float tol)  
      static boolean isEquivalentTriangle​(boolean upper, org.ejml.data.FMatrix a, org.ejml.data.FMatrix b, float tol)  
      static boolean isIdentity​(org.ejml.data.FMatrix a, float 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​(org.ejml.data.FMatrix a, float min, float max, java.util.Random rand)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GenericMatrixOps_F32

        public GenericMatrixOps_F32()
    • Method Detail

      • isEquivalent

        public static boolean isEquivalent​(org.ejml.data.FMatrix a,
                                           org.ejml.data.FMatrix b,
                                           float tol)
      • isIdentity

        public static boolean isIdentity​(org.ejml.data.FMatrix a,
                                         float 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,
                                                   org.ejml.data.FMatrix a,
                                                   org.ejml.data.FMatrix b,
                                                   float tol)
      • copy

        public static void copy​(org.ejml.data.FMatrix from,
                                org.ejml.data.FMatrix to)
      • setRandom

        public static void setRandom​(org.ejml.data.FMatrix a,
                                     float min,
                                     float max,
                                     java.util.Random rand)