Why comparing `Math.abs(a.get(i, j) + b.get(i, j)`? This makes 1 equal -1. Since both a and b are DoubleMatrix, this method is

~~~
a.dup().sub(b).norm1 < EPSILON
~~~