Package cern.colt.matrix.tdouble.impl

Examples of cern.colt.matrix.tdouble.impl.SparseDoubleMatrix2D


    double[][] da = new double[][]{{3,2,2},{2,3,-2}};
    SVDResults svdr = SVDWrapper.denseSVD(da, 3);
   
    output(svdr);

    SparseDoubleMatrix2D matrix = new SparseDoubleMatrix2D(3, 2);
    matrix.set(0, 0, 1);
    matrix.set(0, 1, -1);
    matrix.set(1, 0, 1);
    matrix.set(1, 1, -1);
    matrix.set(2, 0, Math.sqrt(3));
    matrix.set(2, 1, 0);
   
    SVDResults svdr2 = SVDWrapper.sparseSVD(matrix, 3);
    output(svdr2);
  }
View Full Code Here

TOP

Related Classes of cern.colt.matrix.tdouble.impl.SparseDoubleMatrix2D

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.