Package org.nuiton.util
Class MatrixMap.SubMatrix<E>
java.lang.Object
org.nuiton.util.MatrixMap.AbstractMatrixMap<E>
org.nuiton.util.MatrixMap.SubMatrix<E>
- All Implemented Interfaces:
java.lang.Iterable<E>,MatrixMap<E>
public static class MatrixMap.SubMatrix<E> extends MatrixMap.AbstractMatrixMap<E>
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.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static interfaceMatrixMap.SubMatrix.DimensionConverterPermet de faire une conversion de la dimension demandé dans la sous matrice avec la position reel de la matrice sous jacente.protected static classMatrixMap.SubMatrix.MappingConverterLa conversion est le mapping d'un element vers un autre element.protected static classMatrixMap.SubMatrix.ShiftConverterLa conversion est juste un decalage d'indiceprotected classMatrixMap.SubMatrix.SubMatrixIterator<E>Nested classes/interfaces inherited from interface org.nuiton.util.MatrixMap
MatrixMap.AbstractMatrixMap<E>, MatrixMap.Factory, MatrixMap.MapFunction<E>, MatrixMap.Matrix<E>, MatrixMap.MatrixHelper, MatrixMap.MatrixIterator<E>, MatrixMap.MatrixMapElastic<E>, MatrixMap.MatrixMapFixed<E>, MatrixMap.MatrixMapIterator<E>, MatrixMap.MatrixMapIteratorImpl<E>, MatrixMap.SemanticList<T>, MatrixMap.SubMatrix<E>, MatrixMap.Vector<E> -
Field Summary
Fields Modifier and Type Field Description protected MatrixMap.SubMatrix.DimensionConverterconverterprotected MatrixMap<E>matrixFields inherited from class org.nuiton.util.MatrixMap.AbstractMatrixMap
dim, dimNames, name, semantics -
Constructor Summary
-
Method Summary
Modifier and Type Method Description EgetValueIndex(int... coordinates)Retourne l'element a une certaine position en utilisant des indices ex: 2,3,1MatrixMap.MatrixMapIterator<E>iterator()voidsetValueIndex(E value, int... coordinates)Modifie l'element a une certaine position en utilisant des indices ex: 2,3,1Methods inherited from class org.nuiton.util.MatrixMap.AbstractMatrixMap
clone, copy, equals, equals, equalsValues, extend, getDim, getDim, getDimCount, getDimensionName, getDimensionNames, getName, getSemantic, getSemantics, getSubMatrix, getSubMatrix, getSubMatrix, getSubMatrix, getSubMatrix, getSubMatrix, getSubMatrixOnSemantic, getValue, init, isValidCoordinates, isValidCoordinates, map, paste, paste, pasteIndex, reduce, reduce, reduce, reduceDims, setDimensionName, setDimensionNames, setName, setSemantic, setValue, toString, toStringGeneric
-
Field Details
-
Constructor Details
-
Method Details
-
iterator
-
getValueIndex
Description copied from interface:MatrixMapRetourne l'element a une certaine position en utilisant des indices ex: 2,3,1- Parameters:
coordinates- FIXME- Returns:
- FIXME
-
setValueIndex
Description copied from interface:MatrixMapModifie l'element a une certaine position en utilisant des indices ex: 2,3,1- Parameters:
value- la nouvelle valeurcoordinates- FIXME
-