@Test
public void testCond() throws Exception {

    DenseMatrix matA = DenseMatrix.zeros(4, 5);
    matA.set(0, 0, 1);
    matA.set(0, 4, 2);
    matA.set(1, 2, 3);
    matA.set(3, 1, 2);
    double[] answer = new double[]{3.0, 2.23606797749979, 2.0, 0.0};
    Assert.assertArrayEquals(answer, new SingularValueDecomposition(matA).getSingularValues().getData(), TOL);
}