@Test public void testConformable() { int[] a1 = {1, 3, 1, 5, 1, 1}; int[] b1 = {3, 5}; assert (MAMath.conformable(b1, a1)); assert (MAMath.conformable(a1, b1)); int[] a2 = {1, 3, 1, 5, 1, 1}; int[] b2 = {1, 5, 3}; assert (!MAMath.conformable(b2, a2)); assert (!MAMath.conformable(a2, b2)); int[] a3 = {1, 3, 1, 5, 1, 1}; int[] b3 = {3, 5, 1, 1, 1, 2}; assert (!MAMath.conformable(b3, a3)); assert (!MAMath.conformable(a3, b3)); int[] a4 = {1, 3, 1, 5, 1, 1, 7}; int[] b4 = {1, 1, 3, 5, 1, 7, 1, 1}; assert (MAMath.conformable(b4, a4)); assert (MAMath.conformable(a4, b4)); }
public static boolean conformable(Array a, Array b) { return conformable(a.getShape(), b.getShape()); }
MAMath { public static boolean conformable(Array a, Array b) { return conformable(a.getShape(), b.getShape()); } }
MAMath { public static boolean conformable(Array a, Array b) { return conformable(a.getShape(), b.getShape()); }  }
MAMath { public static boolean conformable(Array a, Array b) { return conformable(a.getShape(), b.getShape()); }  static Array add(Array a, Array b); static void addDouble(Array result, Array a, Array b); static boolean conformable(Array a, Array b); static boolean conformable(int[] shapeA, int[] shapeB); static Array convert(Array org, DataType wantType); static void copy(DataType dataType, IndexIterator from, IndexIterator to); static void copy(Array result, Array a); static void copyDouble(Array result, Array a); static void copyFloat(Array result, Array a); static void copyLong(Array result, Array a); static void copyInt(Array result, Array a); static void copyShort(Array result, Array a); static void copyChar(Array result, Array a); static void copyByte(Array result, Array a); static void copyBoolean(Array result, Array a); static void copyObject(Array result, Array a); static int reducedRank(int[] shape); static double getMinimum(Array a); static double getMaximum(Array a); static MAMath.MinMax getMinMax(Array a); static MAMath.MinMax getMinMaxSkipMissingData(Array a, IsMissingEvaluator eval); static double getMinimumSkipMissingData(Array a, double missingValue); static double getMaximumSkipMissingData(Array a, double missingValue); static MAMath.MinMax getMinMaxSkipMissingData(Array a, double missingValue); static void setDouble(Array result, double val); static double sumDouble(Array a); static double sumDoubleSkipMissingData(Array a, double missingValue); static MAMath.ScaleOffset calcScaleOffsetSkipMissingData(Array a, double missingValue, int nbits); static Array convert2packed(Array unpacked, double missingValue, int nbits, DataType packedType); static Array convert2Unpacked(Array packed, ScaleOffset scaleOffset); static boolean nearlyEquals(Array data1, Array data2); static boolean equals(Array array1, Array array2); static int hashCode(Array array); }
MAMath { public static boolean conformable(Array a, Array b) { return conformable(a.getShape(), b.getShape()); }  static Array add(Array a, Array b); static void addDouble(Array result, Array a, Array b); static boolean conformable(Array a, Array b); static boolean conformable(int[] shapeA, int[] shapeB); static Array convert(Array org, DataType wantType); static void copy(DataType dataType, IndexIterator from, IndexIterator to); static void copy(Array result, Array a); static void copyDouble(Array result, Array a); static void copyFloat(Array result, Array a); static void copyLong(Array result, Array a); static void copyInt(Array result, Array a); static void copyShort(Array result, Array a); static void copyChar(Array result, Array a); static void copyByte(Array result, Array a); static void copyBoolean(Array result, Array a); static void copyObject(Array result, Array a); static int reducedRank(int[] shape); static double getMinimum(Array a); static double getMaximum(Array a); static MAMath.MinMax getMinMax(Array a); static MAMath.MinMax getMinMaxSkipMissingData(Array a, IsMissingEvaluator eval); static double getMinimumSkipMissingData(Array a, double missingValue); static double getMaximumSkipMissingData(Array a, double missingValue); static MAMath.MinMax getMinMaxSkipMissingData(Array a, double missingValue); static void setDouble(Array result, double val); static double sumDouble(Array a); static double sumDoubleSkipMissingData(Array a, double missingValue); static MAMath.ScaleOffset calcScaleOffsetSkipMissingData(Array a, double missingValue, int nbits); static Array convert2packed(Array unpacked, double missingValue, int nbits, DataType packedType); static Array convert2Unpacked(Array packed, ScaleOffset scaleOffset); static boolean nearlyEquals(Array data1, Array data2); static boolean equals(Array array1, Array array2); static int hashCode(Array array);  }