Examples of viewRow()


Examples of org.apache.mahout.math.matrix.DoubleMatrix2D.viewRow()

    //int nx = B.columns();

    // precompute and cache some views to avoid regenerating them time and again
    DoubleMatrix1D[] Xrows = new DoubleMatrix1D[n];
    for (int k = 0; k < n; k++) {
      Xrows[k] = X.viewRow(k);
    }

    // Solve L*Y = B;
    for (int k = 0; k < n; k++) {
      for (int i = k + 1; i < n; i++) {
View Full Code Here

Examples of stallone.api.doubles.IDoubleArray.viewRow()

        {
            // scale diagonal
            Tnew.set(i,i, Math.pow(Tnew.get(i,i), 1.0/timescaleFactor));
           
            // compute off-diagonal scaling factor
            double cOffdiag = (1.0 - Tnew.get(i,i)) / (alg.sum(Tnew.viewRow(i)) - Tnew.get(i,i));
           
            for (int j=0; j<Tnew.columns(); j++)
            {
                if (j != i)
                    Tnew.set(i, j, cOffdiag * Tnew.get(i,j));
 
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.