96979899100101102103104105
public Void apply(DenseByteVector a, SparseByteVector b) { ByteVectorIterator it = indexer.nonZeroIterator(b); while (it.hasNext()) { it.next(); a.set(it.index(), aPlusB(a.get(it.index()), it.get())); } return null; } }
184185186187188189190191192193194
ByteVector result = factory.createVector(columns); ByteVectorIterator it = nonZeroRowIterator(i); while (it.hasNext()) { it.next(); result.set(it.index(), it.get()); } return result; }
208209210211212213214215216217218
ByteVector result = factory.createVector(toColumn - fromColumn); ByteVectorIterator it = nonZeroRowIterator(i, fromColumn, toColumn); while (it.hasNext()) { it.next(); result.set(it.index() - fromColumn, it.get()); } return result; }
231232233234235236237238239240241
ByteVector result = factory.createVector(rows); ByteVectorIterator it = nonZeroColumnIterator(j); while (it.hasNext()) { it.next(); result.set(it.index(), it.get()); } return result; }
255256257258259260261262263264265
ByteVector result = factory.createVector(toRow - fromRow); ByteVectorIterator it = nonZeroColumnIterator(j, fromRow, toRow); while (it.hasNext()) { it.next(); result.set(it.index() - fromRow, it.get()); } return result; }
619620621622623624625626627628629
byte acc = 0; ByteVectorIterator it = rowIterator(i); while (it.hasNext()) { it.next(); final byte prod = aTimesB(it.get(), matrix.get(it.index(), j)); acc = aPlusB(acc, prod); } result.set(j, acc); }
655656657658659660661662663664665
byte acc = 0; ByteVectorIterator it = rowIterator(i, fromColumn, toColumn); while (it.hasNext()) { it.next(); final byte prod = aTimesB(it.get(), matrix.get(it.index() - fromColumn, j)); acc = aPlusB(acc, prod); } result.set(j, acc); }
11841185118611871188118911901191119211931194
int n = 0; ByteVectorIterator it = nonZeroRowIterator(i); while (it.hasNext()) { it.next(); positions[n++] = it.index(); } return positions; }
11991200120112021203120412051206120712081209
int n = 0; ByteVectorIterator it = nonZeroRowIterator(i, fromColumn, toColumn); while (it.hasNext()) { it.next(); positions[n++] = it.index(); } return positions; }
12401241124212431244124512461247124812491250
int n = 0; ByteVectorIterator it = nonZeroColumnIterator(j); while (it.hasNext()) { it.next(); positions[n++] = it.index(); } return positions; }