| {1,2,3,4},
{5,6,7,8},
{9,10,11,12},
{13,14,15,16} };
Matrix matrix = new Matrix(m);
SingularValueDecomposition svd = new SingularValueDecomposition(matrix);
Assert.assertEquals(2147483647, (int)(svd.cond()) );
double[] d = svd.getSingularValues();
Assert.assertEquals(4, d.length);
}
|