Class RingProperties
java.lang.Object
org.flag4j.linalg.ops.common.ring_ops.RingProperties
-
Method Summary
-
Method Details
-
allClose
Checks if all data of two arrays are 'close'.- Parameters:
src1
- First array in comparison.src2
- Second array in comparison.- Returns:
- True if both arrays have the same length and all data are 'close' element-wise; i.e.
elements
a
andb
at the same positions in the two arrays respectively and satisfy|a-b| <= (1E-08 + 1E-05*|b|)
. Otherwise, returns false. - See Also:
-
allClose
public static <T extends Ring<T>> boolean allClose(T[] src1, T[] src2, double relTol, double absTol) Checks if all data of two arrays are 'close'.- Parameters:
src1
- First array in comparison.src2
- Second array in comparison.- Returns:
- True if both arrays have the same length and all data are 'close' element-wise; i.e.
elements
a
andb
at the same positions in the two arrays respectively and satisfy|a-b| <= (absTol + relTol*|b|)
. Otherwise, returns false. - See Also:
-