|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.nuiton.math.matrix.AbstractMatrixND
org.nuiton.math.matrix.SubMatrix
public class SubMatrix
Pour l'instant une sous matrice a obligatoirement le meme nombre de dimension que la matrice qu'elle contient. Elle permet juste de reduire le nombre d'element d'une dimension. C'est comme une "vue" réduite sur la vraie matrices. Created: 29 oct. 2004
| Nested Class Summary | |
|---|---|
protected static interface |
SubMatrix.DimensionConverter
Permet de faire une conversion de la dimension demandé dans la sous matrice avec la position reel de la matrice sous jacente. |
protected static class |
SubMatrix.MappingConverter
La conversion est le mapping d'un element vers un autre element. |
protected static class |
SubMatrix.ShiftConverter
La conversion est juste un decalage d'indice |
protected class |
SubMatrix.SubMatrixIteratorImpl
|
| Field Summary | |
|---|---|
protected SubMatrix.DimensionConverter |
converter
|
protected MatrixND |
matrix
|
| Fields inherited from class org.nuiton.math.matrix.AbstractMatrixND |
|---|
CSV_SEPARATOR, defaultValue, dim, dimHelper, dimNames, factory, name, NUMBER, semantics |
| Constructor Summary | |
|---|---|
SubMatrix(MatrixND matrix,
int dim,
int[] elem)
|
|
SubMatrix(MatrixND matrix,
int dim,
int start,
int nb)
|
|
| Method Summary | |
|---|---|
double |
getValue(int[] coordinates)
Renvoie un element de la matrice demandée en fonction des dimensions passé en paramètre. Exemple: Si on a un matrice 3D. getValue(1,1,1) retourne un element de la matrice. |
MatrixIterator |
iterator()
Retourne un iterator sur toute la matrice. |
void |
setValue(int[] coordinates,
double d)
Modifie un element de la matrice en fonction des dimensions passé en paramètre. Exemple: Si on a un matrice 3D. set([1,1,1], m) modifie un element de la matrice. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected MatrixND matrix
protected SubMatrix.DimensionConverter converter
| Constructor Detail |
|---|
public SubMatrix(MatrixND matrix,
int dim,
int start,
int nb)
public SubMatrix(MatrixND matrix,
int dim,
int[] elem)
| Method Detail |
|---|
public MatrixIterator iterator()
MatrixND
public double getValue(int[] coordinates)
MatrixND
coordinates - les différentes dimension à extraire. Le tableau doit
contenir toutes les dimensions de la matrice, et seulement des
nombres positif
public void setValue(int[] coordinates,
double d)
MatrixND
coordinates - dimension indicesd - new double value to set into matrix at specified dimensions
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||