public class SvdlibjDriver extends Object
Matrix
objects and arbitrarily
formatted matrix files to use the SVDLIBJ library. The SVDLIBJ library was
written by Adrian Kuhn and David Erni and is a direct Java port of Doug
Rohde's SVDLIBC library,
which is itself a C port of the FORTRAN SVDPAKC code.SVD
public static Matrix[] svd(Matrix m, int dimensions)
m
- the matrix to be decomposeddimensions
- the number of singular values to returnpublic static Matrix[] svd(File matrix, MatrixIO.Format format, int dimensions) throws IOException
matrix
- the file containing the matrix to be decomposedformat
- the format of the data in the filedimensions
- the number of singular values to returnIOException
Copyright © 2012. All Rights Reserved.