Examples of viewColumn()


Examples of cern.colt.matrix.DoubleMatrix2D.viewColumn()

 
  for (int c = columnIndexes.length; --c >= 0; ) {
    int column = columnIndexes[c];
    if (column < 0 || column >= columns)
      throw new IndexOutOfBoundsException("Illegal Index");
    sub.viewColumn(c).assign(A.viewColumn(column));
  }
  return sub;
}
/**
Constructs and returns a new <i>sub-range view</i> which is the sub matrix <tt>A[fromRow..toRow,fromColumn..toColumn]</tt>.
View Full Code Here

Examples of cern.colt.matrix.DoubleMatrix2D.viewColumn()

  for (int k = n-1; k >= 0; k--) {
    DoubleMatrix1D QRcolk = QR.viewColumn(k).viewPart(k,m-k);
    Q.setQuick(k,k, 1);
    for (int j = k; j < n; j++) {
      if (QR.getQuick(k,k) != 0) {
        DoubleMatrix1D Qcolj = Q.viewColumn(j).viewPart(k,m-k);
        double s = QRcolk.zDotProduct(Qcolj);
        s = -s / QR.getQuick(k,k);
        Qcolj.assign(QRcolk, F.plusMult(s));
      }
    }
View Full Code Here

Examples of cern.colt.matrix.DoubleMatrix2D.viewColumn()

  for (int c = columnIndexes.length; --c >= 0; ) {
    int column = columnIndexes[c];
    if (column < 0 || column >= columns)
      throw new IndexOutOfBoundsException("Illegal Index");
    sub.viewColumn(c).assign(A.viewColumn(column));
  }
  return sub;
}
/**
Constructs and returns a new <i>sub-range view</i> which is the sub matrix <tt>A[fromRow..toRow,fromColumn..toColumn]</tt>.
View Full Code Here

Examples of cern.colt.matrix.DoubleMatrix2D.viewColumn()

      DoubleMatrix2D coltN = DoubleFactory2D.dense.make(N);
      DoubleMatrix2D coltD = DoubleFactory2D.dense.make(D);
      DoubleMatrix2D coltP;
      coltP = Algebra.ZERO.solve(coltN, coltD);

      return new BSpline(coltP.viewColumn(0).toArray(), coltP.viewColumn(1).toArray(), U);
   }


   /**
    * Returns a B-spline curve of degree <TT>degree</TT> smoothing
View Full Code Here

Examples of cern.colt.matrix.DoubleMatrix2D.viewColumn()

      DoubleMatrix2D coltN = DoubleFactory2D.dense.make(N);
      DoubleMatrix2D coltD = DoubleFactory2D.dense.make(D);
      DoubleMatrix2D coltP;
      coltP = Algebra.ZERO.solve(coltN, coltD);

      return new BSpline(coltP.viewColumn(0).toArray(), coltP.viewColumn(1).toArray(), U);
   }


   /**
    * Returns a B-spline curve of degree <TT>degree</TT> smoothing
View Full Code Here

Examples of cern.colt.matrix.impl.DenseDoubleMatrix2D.viewColumn()

            u.setQuick (i, j, v);
            v *= x[i];
         }
      }
      final DoubleMatrix2D yMat = new DenseDoubleMatrix2D (x.length, 1);
      yMat.viewColumn (0).assign (y);
      final DoubleMatrix2D bMat = alg.solve (u, yMat);
      return bMat.viewColumn (0).toArray ();
   }


View Full Code Here

Examples of org.apache.mahout.math.DenseMatrix.viewColumn()

    values[1][1] = 0.0;
    values[2][2] = 0.0;

    Matrix dataset = new DenseMatrix(values);
    this.trainer.train(labelset, dataset);
    assertFalse(this.trainer.getModel().classify(dataset.viewColumn(3)));
    assertTrue(this.trainer.getModel().classify(dataset.viewColumn(0)));
  }

}
View Full Code Here

Examples of org.apache.mahout.math.DenseMatrix.viewColumn()

    values[2][2] = 0.0;

    Matrix dataset = new DenseMatrix(values);
    this.trainer.train(labelset, dataset);
    assertFalse(this.trainer.getModel().classify(dataset.viewColumn(3)));
    assertTrue(this.trainer.getModel().classify(dataset.viewColumn(0)));
  }

}
View Full Code Here

Examples of org.apache.mahout.math.DenseMatrix.viewColumn()

    values[1][1] = 0.0;
    values[2][2] = 0.0;

    Matrix dataset = new DenseMatrix(values);
    trainer.train(labelset, dataset);
    assertTrue(trainer.getModel().classify(dataset.viewColumn(3)));
    assertFalse(trainer.getModel().classify(dataset.viewColumn(0)));
  }

}
View Full Code Here

Examples of org.apache.mahout.math.DenseMatrix.viewColumn()

    values[2][2] = 0.0;

    Matrix dataset = new DenseMatrix(values);
    trainer.train(labelset, dataset);
    assertTrue(trainer.getModel().classify(dataset.viewColumn(3)));
    assertFalse(trainer.getModel().classify(dataset.viewColumn(0)));
  }

}
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.