|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectxmltorng.i2s.util.NNIntMatrix
public final class NNIntMatrix
This object represents a matix of n
x n
integer values.
Constructor Summary | |
---|---|
NNIntMatrix()
Default constructor. |
|
NNIntMatrix(int n)
Constructor with dimension argument. |
Method Summary | |
---|---|
int |
collectConnectedElements(int[] groupIndexes)
Considering a symetrical or anti-symetrical matrix that represents associations between n elements, this method collects the n elements by groups. |
int |
get(int index1,
int index2)
|
int |
getDimension()
|
void |
set(int index1,
int index2,
int value)
|
void |
setAntisymetricaly(int index1,
int index2,
int value)
|
void |
setDimension(int n)
|
void |
setSymetricaly(int index1,
int index2,
int value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NNIntMatrix()
n
to 0.
public NNIntMatrix(int n)
Method Detail |
---|
public int getDimension()
public void setDimension(int n)
public int get(int index1, int index2)
public void set(int index1, int index2, int value)
public void setSymetricaly(int index1, int index2, int value)
public void setAntisymetricaly(int index1, int index2, int value)
public int collectConnectedElements(int[] groupIndexes)
groupIndexes
.
Return the group count.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |