Examples of transpose()


Examples of jpianotrain.staff.Note.transpose()

        log.debug("Playing: "+o);
        nt=(Note)o;
        if (nt.getPitch()>=pit) {
          pit=nt.getPitch();
        } else {
          nt.transpose(12);
        }
        n[i]=nt;
      }
      MidiThread mt=MidiThread.getInstance();
      if (mt==null) {
View Full Code Here

Examples of kodkod.engine.bool.BooleanMatrix.transpose()

    final BooleanMatrix child = unaryExpr.expression().accept(this);
    final ExprOperator op = unaryExpr.op();

    switch(op) {
    case TRANSPOSE           : ret = child.transpose(); break;
    case CLOSURE             : ret = child.closure(); break;
    case REFLEXIVE_CLOSURE  : ret = child.closure().or(visit((ConstantExpression)Expression.IDEN)); break;
    default :
      throw new IllegalArgumentException("Unknown operator: " + op);
    }
View Full Code Here

Examples of net.sourceforge.processdash.data.util.ResultSet.transpose()

        if (parameters.get("h0") == null)
            parameters.put("h0", "Project/Task");
        ResultSet tableData = ResultSet.get(getDataRepository(), parameters,
            getPrefix(), getPSPProperties());
        if (parameters.get("transpose") != null)
            tableData = tableData.transpose();

        return tableData;
    }

View Full Code Here

Examples of no.uib.cipr.matrix.DenseMatrix.transpose()

    sparse.set(dense);

    for (Matrix m : Lists.newArrayList(dense, sparse)) {
      log.info("starting " + m.getClass());
      Matrix t = new DenseMatrix(m);
      t.transpose();
      Matrix o = new DenseMatrix(dense.numRows(), dense.numColumns());
      log.info("warming up " + m.getClass() + " " + o.getClass());
      for (int i = 0; i < 10; i++)
        m.mult(t, o);
      log.info("starting " + m.getClass() + " " + o.getClass());
View Full Code Here

Examples of no.uib.cipr.matrix.Matrix.transpose()

    sparse.set(dense);

    for (Matrix m : Lists.newArrayList(dense, sparse)) {
      log.info("starting " + m.getClass());
      Matrix t = new DenseMatrix(m);
      t.transpose();
      Matrix o = new DenseMatrix(dense.numRows(), dense.numColumns());
      log.info("warming up " + m.getClass() + " " + o.getClass());
      for (int i = 0; i < 10; i++)
        m.mult(t, o);
      log.info("starting " + m.getClass() + " " + o.getClass());
View Full Code Here

Examples of org.apache.commons.math.linear.RealMatrix.transpose()

    private void checkAEqualUSVt(RealMatrix matrix) {
        BiDiagonalTransformer transformer = new BiDiagonalTransformer(matrix);
        RealMatrix u = transformer.getU();
        RealMatrix b = transformer.getB();
        RealMatrix v = transformer.getV();
        double norm = u.multiply(b).multiply(v.transpose()).subtract(matrix).getNorm();
        Assert.assertEquals(0, norm, 1.0e-14);
    }

    @Test
    public void testUOrthogonal() {
View Full Code Here

Examples of org.apache.commons.math.linear.RealMatrix.transpose()

                }
            }
        }

        // Compute and return Hat matrix
        return Q.multiply(augI).multiply(Q.transpose());
    }

    /**
     * <p>Returns the sum of squared deviations of Y from its mean.</p>
     *
 
View Full Code Here

Examples of org.apache.commons.math.linear.RealMatrix.transpose()

    @Override
    protected RealMatrix calculateBetaVariance() {
        int p = X.getColumnDimension();
        RealMatrix Raug = qr.getR().getSubMatrix(0, p - 1 , 0, p - 1);
        RealMatrix Rinv = new LUDecompositionImpl(Raug).getSolver().getInverse();
        return Rinv.multiply(Rinv.transpose());
    }

}
View Full Code Here

Examples of org.apache.commons.math.linear.RealMatrixImpl.transpose()

                double[] bi = bData[i];
                for (int j = 0; j < b.getColumnDimension(); ++j) {
                    bi[j] = 1.0 + 0.1 * ++counter;
                }
            }
            RealMatrix bbt = b.multiply(b.transpose());
            covariance = new RealMatrixImpl(mean.length, mean.length);
            double[][] covData = covariance.getDataRef();
            for (int i = 0; i < covariance.getRowDimension(); ++i) {
                covData[i][i] = bbt.getEntry(i, i);
                for (int j = 0; j < covariance.getColumnDimension(); ++j) {
View Full Code Here

Examples of org.apache.commons.math3.linear.Array2DRowRealMatrix.transpose()

            for (int i = 0; i < n; i++) {
                for (int j = 0; j < k; j++) {
                    final RealMatrix vec
                        = new Array2DRowRealMatrix(MathArrays.ebeSubtract(data[i], newMeans[j]));
                    final RealMatrix dataCov
                        = vec.multiply(vec.transpose()).scalarMultiply(gamma[i][j]);
                    newCovMats[j] = newCovMats[j].add(dataCov);
                }
            }

            // Converting to arrays for use by fitted model
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.