code: public static double calculateScaledResidual(double[][] A, double[][] X, double[][] B){
  		DoubleMatrix2D AMatrix = DoubleFactory2D.dense.make(A); 
  		DoubleMatrix2D XMatrix = DoubleFactory2D.dense.make(X);
  		DoubleMatrix2D BMatrix = DoubleFactory2D.dense.make(B);
  		return calculateScaledResidual(AMatrix, XMatrix, BMatrix);
  	}
docs: Calculate the scaled residual
  <br> ||Ax-b||_oo/( ||A||_oo . ||x||_oo + ||b||_oo ), with
  <br> ||x||_oo = max(||x[i]||)