Examples of rows()


Examples of prefuse.data.Table.rows()

  @Test
  public void testCopyTable() {
    Table t2 = TableUtilities.copyTable(this.table);

    for (IntIterator rows = t2.rows(); rows.hasNext();) {
      int row = (Integer) rows.next();
      for (int col = 0; col < t2.getColumnCount(); col++) {
        assertTrue(t2.get(row, col) + " " + this.table.get(row, col)
            + " didn't match.",
            t2.get(row, col).equals(this.table.get(row, col)));
View Full Code Here

Examples of prefuse.data.Table.rows()

   
    // Make sure row three is still in the table we copied.
    t2.get(3, 1);

    t2 = TableUtilities.copyTable(this.table);
    for (IntIterator t2Rows = t2.rows(), tableRows = this.table.rows(); t2Rows
        .hasNext();) {
      int t2Row = (Integer) t2Rows.next();
      int tableRow = (Integer) tableRows.next();
      for (int col = 0; col < t2.getColumnCount(); col++) {
        Object t2Value = t2.get(t2Row, col);
View Full Code Here

Examples of prefuse.data.Table.rows()

    /*
     * TODO: (might want to shortcut all of this by counting from 0 to
     * numberOfNodes)
     */
    Table nodeTable = g.getNodeTable();
    for (IntIterator ii = nodeTable.rows(); ii.hasNext();) {
      int nodeID = ii.nextInt();
      Node node = g.getNode(nodeID);
     
      int numEdges = g.getInDegree(node) + g.getOutDegree(node);
     
View Full Code Here

Examples of prefuse.data.Table.rows()

    /*
     * TODO: (might want to shortcut all of this by counting from 0 to
     * numberOfNodes)
     */
    Table nodeTable = g.getNodeTable();
    for (IntIterator ii = nodeTable.rows(); ii.hasNext();) {
      int nodeID = ii.nextInt();
      Node node = g.getNode(nodeID);
     
      int numEdges = g.getInDegree(node) + g.getOutDegree(node);
     
View Full Code Here

Examples of prefuse.data.util.Index.rows()

     * @return an iterator over a range of table rows, determined by a
     * sorted bounded range of a data field
     */
    public IntIterator rangeSortedBy(String field, int lo, int hi, int indexType) {
        Index index = getIndex(field, int.class, true);
        return index.rows(lo, hi, indexType);
    }
   
    /**
     * Return an iterator over a range of rwos in this table, determined
     * by a bounded range for a given data field. A new index over the
View Full Code Here

Examples of stallone.api.doubles.IDoubleArray.rows()

        calculateComponents();

        for (int c=0; c<components.size(); c++)
        {
            IDoubleArray Tsub = T.view(components.get(c).getArray(),components.get(c).getArray()).copy();
            for (int i=0; i<Tsub.rows(); i++)
            {
                IDoubleArray row = Tsub.viewRow(i);
                Algebra.util.scale(1.0/Doubles.util.sum(row), row);
            }
View Full Code Here

Examples of stallone.api.ints.IIntArray.rows()

   
    @Override
    public IIntArray getNeighborIndexes(int index)
    {
        IIntArray neighborMultiIndexes = getNeighborMultiIndexes(getMultiIndex(index));
        preNeighborIndexes.setView(0, neighborMultiIndexes.rows());
        for (int i=0; i<neighborMultiIndexes.rows(); i++)
            preNeighborIndexes.set(i, getIndex(neighborMultiIndexes.getRow(i)));
        return(preNeighborIndexes);
    }
View Full Code Here

Examples of stallone.doubles.ForeignBufferDoubleArray.rows()

    public void testForeignBufferDoubleArray()
    {
        ByteBuffer buff = ByteBuffer.allocateDirect(10 * Double.SIZE);
        ForeignBufferDoubleArray array = new ForeignBufferDoubleArray(buff, 10, 1);
       
        Assert.assertEquals(10, array.rows());
        Assert.assertEquals(1, array.columns());
        Assert.assertEquals(10, array.size());
    }

    @Test
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.