Package com.nr.la

Examples of com.nr.la.NRsparseCol


    // XXX java not support unsigned int.
    for (i=0;i<nnvals;i++) a[myran.int32p() % N] = (double)(i);
    nnvals=0;   // There may be fewer than nnvals non-zero elements
    for (i=0;i<N;i++)
      if (a[i] != 0.0) nnvals++;
    NRsparseCol as = new NRsparseCol(N,nnvals);
    k=0;
    for (i=0;i<a.length;i++)
      if (a[i] != 0.0) {
        as.row_ind[k]=i;
        as.val[k++]=a[i];
View Full Code Here


    s = sinit;
    a = new double[mm];
    outchg = new NRsparseCol[mm];
    depend = new NRsparseCol[mm];
    for(int i=0;i<mm;i++) {
      outchg[i] = new NRsparseCol();
      depend[i] = new NRsparseCol();
    }
    pr = new int[mm];
    t =0;
    asum=0;
    ran = new Ran(seed);
View Full Code Here

TOP

Related Classes of com.nr.la.NRsparseCol

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.