Package org.nuiton.util
Class MatrixMap.MatrixMapFixed<E>
java.lang.Object
org.nuiton.util.MatrixMap.AbstractMatrixMap<E>
org.nuiton.util.MatrixMap.MatrixMapFixed<E>
- Type Parameters:
E- FIXME
- All Implemented Interfaces:
java.lang.Iterable<E>,MatrixMap<E>
public static class MatrixMap.MatrixMapFixed<E> extends MatrixMap.AbstractMatrixMap<E>
Implantation de MatrixMap dont les dimensions sont fixees a la creation
Les dimensions ne change plus par la suite
-
Nested Class Summary
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.Matrix<E>matrixFields inherited from class org.nuiton.util.MatrixMap.AbstractMatrixMap
dim, dimNames, name, semantics -
Constructor Summary
Constructors Constructor Description MatrixMapFixed(java.lang.String name, java.lang.String[] dimNames, java.util.List... semantics)MatrixMapFixed(java.lang.String name, java.util.List... semantics)MatrixMapFixed(java.util.List... semantics)MatrixMapFixed(MatrixMap<E> matrix) -
Method Summary
Modifier and Type Method Description protected MatrixMap.Matrix<E>getMatrix()EgetValueIndex(int... coordinates)Retourne l'element a une certaine position en utilisant des indices ex: 2,3,1MatrixMap.MatrixMapIterator<E>iterator()MatrixMap<E>map(MatrixMap.MapFunction<E> f)Retourne la matrice elle meme.MatrixMap<E>paste(int[] origin, MatrixMap<E> mat)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 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, paste, pasteIndex, reduce, reduce, reduce, reduceDims, setDimensionName, setDimensionNames, setName, setSemantic, setValue, toString, toStringGeneric
-
Field Details
-
Constructor Details
-
MatrixMapFixed
public MatrixMapFixed(java.util.List... semantics) -
MatrixMapFixed
public MatrixMapFixed(java.lang.String name, java.util.List... semantics) -
MatrixMapFixed
public MatrixMapFixed(java.lang.String name, java.lang.String[] dimNames, java.util.List... semantics) -
MatrixMapFixed
-
-
Method Details
-
getMatrix
-
iterator
-
map
Description copied from class:MatrixMap.AbstractMatrixMapRetourne la matrice elle meme. Les modifications sont faites directement dessus -
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
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.
-