3738394041424344454647
// it will need to create a copy in this case Dummy dummy = new Dummy(2,true,true,2,3); SingularValueDecomposition decomp = new SafeSvd(dummy); assertFalse(decomp.inputModified()); decomp.decompose(A); assertTrue(A != dummy.passedInMatrix);
4647484950515253545556
assertTrue(A != dummy.passedInMatrix); // now no need to make a copy dummy = new Dummy(2,true,false,2,3); decomp = new SafeSvd(dummy); assertFalse(decomp.inputModified()); decomp.decompose(A); assertTrue(A == dummy.passedInMatrix); }