Package org.apache.mahout.math.hadoop.stochasticsvd.qr

Examples of org.apache.mahout.math.hadoop.stochasticsvd.qr.GivensThinSolver$TriangularRowView


                                      // of y buff

    while (yLookahead.size() > kp) {

      if (qSolver == null) {
        qSolver = new GivensThinSolver(r, kp);
      }

      qSolver.appendRow(yLookahead.remove(0));
      if (qSolver.isFull()) {
        UpperTriangular r = qSolver.getRTilde();
View Full Code Here


    if (qSolver == null && yLookahead.isEmpty()) {
      return;
    }
    if (qSolver == null) {
      qSolver = new GivensThinSolver(yLookahead.size(), kp);
    }
    // grow q solver up if necessary

    qSolver.adjust(qSolver.getCnt() + yLookahead.size());
    while (!yLookahead.isEmpty()) {
View Full Code Here

    m.setQuick(1, 2, 6);
    m.setQuick(2, 0, 7);
    m.setQuick(2, 1, 8);
    m.setQuick(2, 2, 9);

    GivensThinSolver qrSolver = new GivensThinSolver(m.rowSize(), m.columnSize());
    qrSolver.solve(m);

    Matrix qtm = new DenseMatrix(qrSolver.getThinQtTilde());

    assertOrthonormality(qtm.transpose(), false, SVD_EPSILON);

    Matrix aClone = new DenseMatrix(qrSolver.getThinQtTilde()).transpose()
        .times(qrSolver.getRTilde());

    System.out.println("aclone : " + aClone);

  }
View Full Code Here

    m.setQuick(1, 2, 6);
    m.setQuick(2, 0, 7);
    m.setQuick(2, 1, 8);
    m.setQuick(2, 2, 9);

    GivensThinSolver qrSolver =
      new GivensThinSolver(m.rowSize(), m.columnSize());
    qrSolver.solve(m);

    Matrix qtm = new DenseMatrix(qrSolver.getThinQtTilde());

    assertOrthonormality(qtm.transpose(), false, SVD_EPSILON);

    Matrix aClone =
      new DenseMatrix(qrSolver.getThinQtTilde()).transpose()
                                                .times(qrSolver.getRTilde());

    System.out.println("aclone : " + aClone);

  }
View Full Code Here

TOP

Related Classes of org.apache.mahout.math.hadoop.stochasticsvd.qr.GivensThinSolver$TriangularRowView

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.