Examples of ax()


Examples of com.nr.la.NRsparseMat.ax()

    }

    // Test multiplication of sparse matrix by vector
    double[] c = new double[as.ncols];
    ranvec(c);
    double[] d=as.ax(c);    // Sparse multiplication by vector
    // Find same result by brute force
    double[] e = new double[as.nrows];
    for (i=0;i<as.nrows;i++) {
      val=0.0;
      for (j=0;j<as.ncols;j++) val += a[i][j]*c[j];
 
View Full Code Here

Examples of com.nr.la.NRsparseMat.ax()

    TestLinbcg test = new TestLinbcg(sa);
    test.solve(bbb,xx,ITOL,TOL,ITMAX,iter,err);

    sbeps = 5.e-15;
    localflag = maxel(vecsub(sa.ax(xx),bbb)) > sbeps;
    globalflag = globalflag || localflag;
    if (localflag) {
      fail("*** Linbcg: Derived class gives inconsistent solution vector");
     
    }
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.