DoubleMatrix2D Ax=solver.toDoubleMatrix2D();
Assert.assertEquals(getExpectedMatrix2DSlowly(gr),Ax);
if (expectedAx != null) Assert.assertEquals(expectedAx, Ax);
DoubleMatrix1D b=solver.toDoubleMatrix1D();
if (expectedB != null) Assert.assertEquals(expectedB, b);Assert.assertEquals(getExpectedMatrix1DSlowly(gr),b);
solver.solveExternally(1);// check if we have a solution, just in case it fails.
// Now check consistency.
gr.config.setAttenuationK_testOnly(1);DoubleMatrix2D Ax1 = ndGraph.buildMatrix(threadNumber).toDoubleMatrix2D();
gr.config.setAttenuationK(0);DoubleMatrix2D Ax0 = ndGraph.buildMatrix(threadNumber).toDoubleMatrix2D();
DoubleMatrix1D one = DoubleFactory1D.dense.make(Ax1.rows(), 1), a=DoubleFactory1D.dense.make(Ax.rows(), 0);