Examples of numRows()


Examples of org.ejml.simple.SimpleMatrix.numRows()

        assertTrue( !U.hasUncountable() );
        assertTrue( !Vt.hasUncountable() );
        assertTrue( !W.hasUncountable() );

        if( svd.isCompact() ) {
            assertEquals(W.numCols(),W.numRows());
            assertEquals(U.numCols(),W.numRows());
            assertEquals(Vt.numRows(),W.numCols());
        } else {
            assertEquals(U.numCols(),W.numRows());
            assertEquals(W.numCols(),Vt.numRows());
View Full Code Here

Examples of org.haystack.HGrid.numRows()

        // read children of base record
        HGrid grid = readAll(filter);

        // add navId column to results
        HDict[] rows = new HDict[grid.numRows()];
        Iterator<HRow> it = grid.iterator();
        for (int i = 0; it.hasNext();)
            rows[i++] = it.next();
        for (int i = 0; i < rows.length; ++i)
            rows[i] = new HDictBuilder().add(rows[i]).add("navId", rows[i].id().val).toDict();
View Full Code Here

Examples of org.timepedia.chronoscope.client.util.JavaArray2D.numRows()

    assertEquals(20.0, a2d.get(0, 1));
    assertEquals(30.0, a2d.get(1, 0));
    assertEquals(10.0, a2d.get(0, 0));
   
    // Verify new dimensions
    assertEquals(newRowIdx + 1, a2d.numRows());
    assertEquals(newColIdx + 1, a2d.numColumns(newRowIdx));
  }

  private static double[][] copy(double[][] a) {
    double[][] copy = new double[a.length][];
View Full Code Here

Examples of org.timepedia.chronoscope.client.util.JavaArray2D.numRows()

    // make a copy of 'row' to use as expected array to guard against
    // case where JavaArray2D accidentally modifies the input array.
    double[] expectedRow = Util.copyArray(row);
   
    JavaArray2D a = new JavaArray2D(row);
    assertEquals(1, a.numRows());
    assertEquals(3, a.numColumns(0));
    for (int i = 0; i < expectedRow.length; i++) {
      assertEquals(expectedRow[i], a.get(0, i));
    }
  }
View Full Code Here

Examples of org.timepedia.chronoscope.client.util.JavaArray2D.numRows()

    row1[0] = 999.0;
    assertEquals(3.0, a.get(1, 0));
   
    // Verify that access to the array elemts via the Array1D interface
    // works as expected
    for (int i = 0; i < a.numRows(); i++) {
      for (int j = 0; j < a.numColumns(i); j++) {
        assertEquals(a.get(i, j), a.getRow(i).get(j));
      }
    }
  }
View Full Code Here

Examples of pspdash.data.ResultSet.numRows()

            tableData = tableData.transpose();

        // print the table
        int firstRow = (skipColHdr ? 1 : 0);
        int firstCol = (skipRowHdr ? 1 : 0);
        for (int row=firstRow;  row <= tableData.numRows();  row++) {
            out.println("<TR>");
            for (int col=firstCol;  col <= tableData.numCols();  col++) {
                out.print("<TD" + getColAttributes(col) + ">");
                out.print(esc(tableData.format(row, col)));
                out.println("</TD>");
View Full Code Here

Examples of water.fvec.Frame.numRows()

    Frame frame = drm.frame;
    Vec labels = drm.keys;
    Matrix m;

    if (isSparse(frame)) {
      m = new SparseMatrix((int)frame.numRows(), frame.numCols());
    } else {
      m = new DenseMatrix((int)frame.numRows(), frame.numCols());
    }

    int c = 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.