Examples of numRows()


Examples of edu.stanford.nlp.neural.SimpleTensor.numRows()

    SimpleMatrix[] slices = new SimpleMatrix[numSlices];
    for (int i = 0; i < numSlices; ++i) {
      slices[i] = loadMatrix(basePath + "bin/Wt_" + (i + 1) + ".bin", basePath + "Wt_" + (i + 1) + ".txt");
    }
    SimpleTensor tensor = new SimpleTensor(slices);
    System.err.println("W tensor size: " + tensor.numRows() + "x" + tensor.numCols() + "x" + tensor.numSlices());

    SimpleMatrix W = loadMatrix(basePath + "bin/W.bin", basePath + "W.txt");
    System.err.println("W matrix size: " + W.numRows() + "x" + W.numCols());

    SimpleMatrix Wcat = loadMatrix(basePath + "bin/Wcat.bin", basePath + "Wcat.txt");
View Full Code Here

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



    private void printDataTable(ProbeData histData, boolean full) {
        ResultSet resultSet = histData.getResultSet();
        int numRows = resultSet.numRows();

        if (numRows == 0) {
            out.print("<p>");
            out.print(resources.getHTML("HistData.No_Data_Message"));
            out.println("</p>");
View Full Code Here

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

            else if (c == ProbeData.EXCLUDE && !histData.isReportMode())
                out.print(EXCLUDE_ALL_CHECKBOX);
        }
        out.println("</th></tr>");

        for (int r = 1;   r <= resultSet.numRows();   r++) {
            out.print("<tr>");
            out.print("<td nowrap>");
            out.print(esc(resultSet.getRowName(r)));
            for (int c = 1;   c < ProbeData.EXCLUDE;   c++) {
                out.print("</td><td align=center>");
View Full Code Here

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

    protected ResultSet getChartData() {
        // make a copy of the data that only includes the columns of interest
        ResultSet chartData = histData.getResultSet().pluckColumns(xColumn,
            methodPurpose.getYColumn());
        // discard any rows that have zeros in the X or Y value
        for (int row = chartData.numRows(); row > 0; row--) {
            if (!goodChartData(chartData.getData(row, 1))
                    || !goodChartData(chartData.getData(row, 2)))
                chartData.removeRow(row);
        }
        return chartData;
View Full Code Here

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

        for (int i = 0; i < Al.size() - 1; ++i)
            this.A[i] = Al.get(i);

        // Create a LU decomposition of the smallest Galerkin matrix
        DenseMatrix Ac = new DenseMatrix(Al.get(Al.size() - 1));
        lu = new DenseLU(Ac.numRows(), Ac.numColumns());
        lu.factor(Ac);

        // Allocate vectors at each level
        u = new DenseVector[m];
        f = new DenseVector[m];
View Full Code Here

Examples of no.uib.cipr.matrix.TridiagMatrix.numRows()

        System.arraycopy(svd.getS(), 0, S.getDiagonal(), 0, svd.getS().length);
        DenseMatrix U = svd.getU();
        DenseMatrix Vt = svd.getVt();

        // Compute U*S*Vt
        Matrix s = U.mult(S.mult(Vt, new DenseMatrix(S.numRows(), Vt
                .numColumns())), new DenseMatrix(A.numRows(), A.numColumns()));

        // Check that A=U*S*Vt
        for (int i = 0; i < A.numRows(); ++i)
            for (int j = 0; j < A.numColumns(); ++j)
View Full Code Here

Examples of no.uib.cipr.matrix.io.MatrixSize.numRows()

            info = new MatrixInfo(true, MatrixInfo.MatrixField.Real,
                    MatrixInfo.MatrixSymmetry.General);
        MatrixSize size = r.readMatrixSize(info);

        // Resize the matrix to correct size
        numRows = size.numRows();
        numColumns = size.numColumns();
        data = new double[numRows * numColumns];

        // Check that the matrix is in an acceptable format
        if (info.isPattern())
View Full Code Here

Examples of no.uib.cipr.matrix.io.MatrixSize.numRows()

            throw new UnsupportedOperationException(
                    "Complex matrices are not supported");

        // Resize the matrix to correct size
        MatrixSize size = r.readMatrixSize(info);
        numRows = size.numRows();
        numColumns = size.numColumns();

        // Start reading entries
        int numEntries = size.numEntries();
        int[] row = new int[numEntries];
View Full Code Here

Examples of no.uib.cipr.matrix.io.MatrixSize.numRows()

            info = new MatrixInfo(true, MatrixInfo.MatrixField.Real,
                    MatrixInfo.MatrixSymmetry.General);
        MatrixSize size = r.readMatrixSize(info);

        // Resize the matrix to correct size
        numRows = size.numRows();
        numColumns = size.numColumns();

        // Check that the matrix is in an acceptable format
        if (info.isPattern())
            throw new UnsupportedOperationException(
View Full Code Here

Examples of no.uib.cipr.matrix.io.MatrixSize.numRows()

            info = new MatrixInfo(true, MatrixInfo.MatrixField.Real,
                    MatrixInfo.MatrixSymmetry.General);
        MatrixSize size = r.readMatrixSize(info);

        // Resize the matrix to correct size
        numRows = size.numRows();
        numColumns = size.numColumns();
        data = new double[numRows * numColumns];

        // Check that the matrix is in an acceptable format
        if (info.isPattern())
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.