Class MatrixMap.MatrixMapFixed<E>
java.lang.Object
org.nuiton.util.MatrixMap.AbstractMatrixMap<E>
org.nuiton.util.MatrixMap.MatrixMapFixed<E>
- Type Parameters:
E- FIXME
Implantation de MatrixMap dont les dimensions sont fixees a la creation
Les dimensions ne change plus par la suite
- Since:
- 2.2.1
- Author:
- Benjamin Poussin - poussin@codelutin.com
-
Nested Class Summary
Nested classes/interfaces inherited from interface 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
FieldsFields inherited from class MatrixMap.AbstractMatrixMap
dim, dimNames, name, semantics -
Constructor Summary
ConstructorsConstructorDescriptionMatrixMapFixed(String name, String[] dimNames, List... semantics) MatrixMapFixed(String name, List... semantics) MatrixMapFixed(List... semantics) MatrixMapFixed(MatrixMap<E> matrix) -
Method Summary
Modifier and TypeMethodDescriptionprotected MatrixMap.Matrix<E> getValueIndex(int... coordinates) Retourne l'element a une certaine position en utilisant des indices ex: 2,3,1iterator()Retourne la matrice elle meme.Copie une matrice dans la matrice actuelle.voidsetValueIndex(E value, int... coordinates) Modifie un element de la matrice en fonction des dimensions passé en paramètre.Methods inherited from class 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, paste, pasteIndex, reduce, reduce, reduce, reduceDims, setDimensionName, setDimensionNames, setName, setSemantic, setValue, toString, toStringGenericMethods inherited from class Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Field Details
-
matrix
-
-
Constructor Details
-
MatrixMapFixed
-
MatrixMapFixed
-
MatrixMapFixed
-
MatrixMapFixed
-
-
Method Details
-
getMatrix
-
iterator
-
map
Description copied from class:MatrixMap.AbstractMatrixMapRetourne la matrice elle meme. Les modifications sont faites directement dessus -
getValueIndex
-
setValueIndex
Modifie un element de la matrice en fonction des dimensions passé en paramètre.
Exemple: Si on a un matrice 3D.
m.set(v, [1,1,1]) modifie un element de la matrice.- Parameters:
value- la value a inserercoordinates- les coordonées où faire le remplacement
-
paste
Copie une matrice dans la matrice actuelle. La matrice à copier à le même nombre de dimension. Si la matrice à copier est trop grande seul les éléments pouvant être copier le seront.- Overrides:
pastein classMatrixMap.AbstractMatrixMap<E>- Parameters:
origin- le point à partir duquel il faut faire la copiemat- la matrice à copier- Returns:
- return la matrice courante.
-