* Checks to see how it handles getLower getUpper functions with and without
* a matrix being provided.
*/
@Test
public void getLower_getUpper() {
DenseMatrix64F A = new DenseMatrix64F(3,3, true, 5, 2, 3, 1.5, -2, 8, -3, 4.7, -0.5);
LUDecomposition<DenseMatrix64F> alg = create(3,3);
alg.decompose(A);
DenseMatrix64F L_provided = RandomMatrices.createRandom(3,3,rand);
DenseMatrix64F U_provided = RandomMatrices.createRandom(3,3,rand);
assertTrue(L_provided == alg.getLower(L_provided));
assertTrue(U_provided == alg.getUpper(U_provided));
DenseMatrix64F L_ret = alg.getLower(null);
DenseMatrix64F U_ret = alg.getUpper(null);
assertTrue(MatrixFeatures.isEquals(L_provided,L_ret));
assertTrue(MatrixFeatures.isEquals(U_provided,U_ret));
}