Package no.uib.cipr.matrix.io

Examples of no.uib.cipr.matrix.io.MatrixVectorReader


    return results;
  }

  public static void main(String[] args) throws Exception {
    File file = new File("A.txt");
    Matrix A = new LinkedSparseMatrix(new MatrixVectorReader(new FileReader(file)));
    Matrix AtA = A.transAmult(A, new LinkedSparseMatrix(A.numColumns(), A.numColumns()));

    ArpackSym solver = new ArpackSym(AtA);
    Map<Double, DenseVectorSub> results = solver.solve(A.numRows() / 10, ArpackSym.Ritz.LA);
    for (Map.Entry<Double, DenseVectorSub> result : results.entrySet()) {
View Full Code Here

TOP

Related Classes of no.uib.cipr.matrix.io.MatrixVectorReader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.