Documentation of 'org.ejml.simple.SimpleUnitTests' Java class
SimpleUnitTests
org.ejml.simple

Class SimpleUnitTests



  • public class SimpleUnitTests
    extends java.lang.Object
    Unit testing functions for SimpleMatrix
    • Constructor Detail

      • SimpleUnitTests

        public SimpleUnitTests()
    • Method Detail

      • assertCountable

        public static void assertCountable(SimpleMatrix A)
        Checks to see if every element in A is countable. A doesn't have any element with a value of NaN or infinite.
        Parameters:
        A - Matrix
      • assertShape

        public static void assertShape(SimpleMatrix A,
                                       SimpleMatrix B)

        Checks to see if A and B have the same shape.

        Parameters:
        A - Matrix
        B - Matrix
      • assertEqualsUncountable

        public static void assertEqualsUncountable(SimpleMatrix A,
                                                   SimpleMatrix B,
                                                   double tol)

        Checks to see if each element in the matrix is within tolerance of each other:

        The two matrices are identical with in tolerance if:
        |aij - bij| ≤ tol

        In addition if an element is NaN or infinite in one matrix it must be the same in the other.

        Parameters:
        A - Matrix A
        B - Matrix B
        tol - Tolerance
      • assertEquals

        public static void assertEquals(SimpleMatrix A,
                                        SimpleMatrix B,
                                        double tol)

        Checks to see if each element in the matrices are within tolerance of each other and countable:

        The two matrices are identical with in tolerance if:
        |aij - bij| ≤ tol

        The test will fail if any element in either matrix is NaN or infinite.

        Parameters:
        A - Matrix A
        B - Matrix B
        tol - Tolerance

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.