choco.kernel.common.util.objects
Interface ISparseMatrix

All Known Implementing Classes:
BooleanSparseMatrix

public interface ISparseMatrix


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.
 

Method Detail

add

void add(int i,
         int j)
Add a new element in the matrix

Parameters:
i -
j -

getNbElement

int getNbElement()
get the number of element contained in the matrix

Returns:
the number of element

iterator

Iterator<Long> iterator()
Return an iterator over the values

Returns:
an iterator

prepare

void prepare()
Prepare the matrix for correct iteration.



Copyright © 2012. All Rights Reserved.