|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchoco.kernel.common.util.objects.BooleanSparseMatrix
public class BooleanSparseMatrix
A simple representation of a 0-1 sparse matrix
Constructor Summary | |
---|---|
BooleanSparseMatrix(int n)
|
Method Summary | |
---|---|
void |
add(int i,
int j)
Add a new element in the matrix |
int |
getNbElement()
get the number of element contained in the matrix |
Iterator<Long> |
iterator()
Return an iterator over the values |
void |
prepare()
Prepare the matrix for correct iteration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BooleanSparseMatrix(int n)
Method Detail |
---|
public void add(int i, int j)
add
in interface ISparseMatrix
i
- j
- public int getNbElement()
getNbElement
in interface ISparseMatrix
public Iterator<Long> iterator()
iterator
in interface ISparseMatrix
public void prepare()
prepare
in interface ISparseMatrix
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |