Package gnu.trove.iterator

Examples of gnu.trove.iterator.TLongFloatIterator.advance()


    int []newdim = {dim[1],dim[0]};
    SparseMatrix newmat = new SparseMatrix(newdim);
    TLongFloatIterator itW = vector.iterator();
    for (int i = vector.size(); i-- > 0;)
    {
      itW.advance();
      int x = getIndices(itW.key())[0];
      int y = getIndices(itW.key())[1];
      int []TranWIndices = {y,x};
      newmat.set(TranWIndices,itW.value());
    }
View Full Code Here


      return cachedBlockData;
    }
    Set<org.getspout.spoutapi.material.Block> modified = new HashSet<org.getspout.spoutapi.material.Block>();
    TLongFloatIterator i = originalFriction.iterator();
    while (i.hasNext()) {
      i.advance();
      int id = TIntPairHashSet.longToKey1(i.key());
      int data = TIntPairHashSet.longToKey2(i.key());

      org.getspout.spoutapi.material.Block block = MaterialData.getBlock(id, (short) data);
      if (block != null) {
View Full Code Here

      }
    }

    i = originalHardness.iterator();
    while (i.hasNext()) {
      i.advance();
      int id = TIntPairHashSet.longToKey1(i.key());
      int data = TIntPairHashSet.longToKey2(i.key());
      org.getspout.spoutapi.material.Block block = MaterialData.getBlock(id, (short) data);
      if (block != null) {
        modified.add(block);
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.