Buggy code:
; protected double [ ] testVector2 = new double [ ] { 1 , 2 , 3 , 4 } ; protected double [ ] [ ] subTestData = new double [ ] [ ] { new double [ ] { 1 , 2 , 3 , 4 } , new double [ ] { 1.5 , 2.5 , 3.5 , 4.5 } , new double [ ] { 2 , 4 , 6 , 8 } , new double [ ] { 4 , 5 , 6 , 7 } } ; protected double [ ] [ ] subRows02Cols13 = new double [ ] [ ] { new double [ ] { 2 , 4 } , new double [ ] { 4 , 8 } } ; protected double [ ] [ ] subRows03Cols12 = new double [ ] [ ] { new double [ ] { 2 , 3 } , new double [ ] { 5 , 6 } } ; protected double [ ] [ ] subRows03Cols123 = new double [ ] [ ] { new double [ ] { 2 , 3 , 4 } , new double [ ] { 5 , 6 , 7 } } ; protected double [ ] [ ] subRows20Cols123 = new double [ ] [ ] { new double [ ] { 4 , 6 , 8 } , new double [ ] { 2 , 3 , 4 } } ; protected double [ ] [ ] subRows31Cols31 = new double [ ] [ ] { new double [ ] { 7 , 5 } , new double [ ] { 4.5 , 2.5 } } ; protected double [ ] [ ] subRows01Cols23 = new double [ ] [ ] { new double [ ] { 3 , 4 } , new double [ ] { 3.5 , 4.5 } } ; protected double [ ] [ ] subRows23Cols00 = new double [ ] [ ] { new double [ ] { 2 } , new double [ ] { 4 } } ; protected double [ ] [ ] subRows00Cols33 = new double [ ] [ ] { new double [ ] { 4 } } ; protected double [ ] [ ] subRow0 = new double [ ] [ ] { new double [ ] { 1 , 2 , 3 , 4 } } ; protected double [ ] [ ] subRow3 = new double [ ] [ ] { new double [ ] { 4 , 5 , 6 , 7 } } ; protected double [ ] [ ] subColumn1 = new double [ ] [ ] { new double [ ] { 2 } , new double [ ] { 2.5 } , new double [ ] { 4 } , new double [ ] { 5 } } ; protected double [ ] [ ] subColumn3 = new double [ ] [ ] { new double [ ] { 4 } , new double [ ] { 4.5 } , new double [ ] { 8 } , new double [ ] { 7 } } ; protected double entryTolerance = 1.0E-15 ; protected double normTolerance = 1.0E-13 ; public SparseRealMatrixTest ( String name ) { } public static Test suite ( ) { } public void testDimensions ( ) { } public void testCopyFunctions ( ) { } public void testAdd ( ) { } public void testAddFail ( ) { } public void testNorm ( ) { } public void testPlusMinus ( ) { } public void testMultiply ( ) { OpenMapRealMatrix m = createSparseMatrix ( testData ) ; OpenMapRealMatrix mInv = createSparseMatrix ( testDataInv ) ; OpenMapRealMatrix identity = createSparseMatrix ( id ) ; OpenMapRealMatrix m2 = createSparseMatrix ( testData2 ) ; assertClose ( "inverse<seq2seq4repair_space>multiply" , m . multiply ( mInv ) , identity , entryTolerance ) ; <START_BUG> assertClose ( "inverse<seq2seq4repair_space>multiply" , m . multiply ( new DenseRealMatrix ( testDataInv ) ) , identity , entryTolerance ) ; <END_BUG> assertClose ( "inverse<seq2seq4repair_space>multiply" , mInv . multiply ( m ) , identity , entryTolerance ) ; assertClose ( "identity<seq2seq4repair_space>multiply" , m . multiply ( identity ) , m , entryTolerance ) ; assertClose ( "identity<seq2seq4repair_space>multiply" , identity . multiply ( mInv ) , mInv , entryTolerance ) ; assertClose ( "identity<seq2seq4repair_space>multiply" , m2 . multiply ( identity ) , m2 , entryTolerance ) ; try { m . multiply ( createSparseMatrix ( bigSingular ) ) ; fail ( "Expecting<seq2seq4repair_space>illegalArgumentException" ) ; } catch ( IllegalArgumentException ex ) { } } private double [ ] [ ] d3 = new double [ ] [ ] { new double [ ] { 1 , 2 , 3 , 4 } , new double [ ] { 5 , 6 , 7 , 8 } } ; private double [ ] [ ] d4 = new double [ ] [ ] { new double [ ] { 1 } , new double [ ] { 2 } , new double [ ] { 3 } , new double [ ] { 4 } } ; private double [ ] [ ] d5 = new double [ ] [ ] { new double [ ] { 30 } , new double [ ] { 70 } } ; public void testMultiply2 ( ) { } public void testTrace ( ) { } public void testScalarAdd ( ) { } public void testOperate ( ) { } public void testMath209 ( ) { } public void testTranspose ( ) { } public void testPremultiplyVector ( ) { } public void testPremultiply ( ) { } public void testGetVectors ( ) { } public void testGetEntry ( ) { } public void testExamples ( ) { } public void testSubMatrix ( ) { } public void testGetRowMatrix ( ) { } public void testGetColumnMatrix ( ) { }

Fix:
assertClose ( "inverse<seq2seq4repair_space>multiply" , m . multiply ( new BlockRealMatrix ( testDataInv ) ) , identity , entryTolerance ) ;