Package org.netlib.lapack

Examples of org.netlib.lapack.LAPACK.dgesdd()


    LAPACK lapack = LAPACK.getInstance();
  
    /* ask for optimal size of work array */
    int lwork = -1;
    intW info = new intW(0);
    lapack.dgesdd(jobu, n, p, xvals, n,  s, u, ldu, v, ldvt, tmp, lwork, iwork, info);
   
    if (info.val != 0) {
      throw new EvalException("error code %d from Lapack routine '%s'", info.val, "dgesdd");
    }
    
View Full Code Here


    }
    
    lwork = (int) tmp[0];
    double work[] = new double[lwork];
   
    lapack.dgesdd(jobu, n, p, xvals, n, s, u, ldu, v, ldvt, work, lwork, iwork, info);
   
    return ListVector.newNamedBuilder()
      .add("d", DoubleArrayVector.unsafe(s, sexp.getAttributes()))
      .add("u", DoubleArrayVector.unsafe(u, uexp.getAttributes()))
      .add("vt", DoubleArrayVector.unsafe(v, vexp.getAttributes()))
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.