Java Assert assertSameSize(double[][] newLogPhi, double[][] logPhi)

Here you can find the source of assertSameSize(double[][] newLogPhi, double[][] logPhi)

Description

assert Same Size

License

Apache License

Declaration

public static void assertSameSize(double[][] newLogPhi, double[][] logPhi) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static void assertSameSize(double[][] newLogPhi, double[][] logPhi) {
        assert (newLogPhi.length == logPhi.length);
        for (int k = 0; k < logPhi.length; k++) {
            assert (newLogPhi[k].length == logPhi[k].length);
        }//from  w w w . ja  v a 2 s .com
    }
}

Related

  1. assertRequiredArgs(Object[] methodArgs, int requiredArgs, String methodName)
  2. assertSame(Object expected, Object actual)
  3. assertSame(Object targetObject0, Object targetObject1)
  4. assertSameClazz(Object object, Object defaults)
  5. assertSameObject(Object obj1, Object obj2)
  6. assertSorted(final int[] values)
  7. assertSplit(final String text, final int length)
  8. assertSquare(double[]... d)
  9. assertState(boolean expression)