public class SubMatrix extends AbstractMatrixND
| Modifier and Type | Class and Description |
|---|---|
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.SubMatrixExcludeIteratorImpl |
protected class |
SubMatrix.SubMatrixIteratorImpl |
| Modifier and Type | Field and Description |
|---|---|
protected SubMatrix.DimensionConverter |
converter |
protected MatrixND |
matrix |
CSV_SEPARATOR, defaultValue, dim, dimHelper, dimNames, factory, name, NUMBER, semantics| Constructor and Description |
|---|
SubMatrix(MatrixND matrix,
int dim,
int[] elem) |
SubMatrix(MatrixND matrix,
int dim,
int start,
int nb) |
| Modifier and Type | Method and Description |
|---|---|
int |
getNumberOfAssignedValue()
return value of inner matrix, this is not realy a good choice, but it's
better than 0.
|
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.
|
MatrixIterator |
iteratorNotZero()
Retourne un iterator pour toutes les valeurs de la matrices differente
de 0
|
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. |
add, adds, clone, copy, cut, divs, equals, equals, equalsValues, exportCSV, exportCSV2D, exportCSVND, fromList, getDim, getDim, getDimCount, getDimensionName, getDimensionName, getDimensionNames, getFactory, getMaxOccurence, getMaxOccurrence, getName, getNbDim, getSemantic, getSemantics, getSemantics, getSubMatrix, getSubMatrix, getSubMatrix, getSubMatrix, getSubMatrix, getSubMatrix, getSubMatrixOnSemantic, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, importCSV, importCSV, importCSV, importCSVND, importCSVNDReadDimension, init, isSupportedCSV, isValidCoordinates, isValidCoordinates, map, meanAll, meanOverDim, meanOverDim, minus, minuss, mult, mults, paste, paste, pasteSemantics, reduce, reduce, reduce, reduceDims, setDimensionName, setDimensionName, setDimensionNames, setName, setSemantic, setSemantics, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, size, sumAll, sumOverDim, sumOverDim, sumOverDim, toList, toString, transposeprotected MatrixND matrix
protected SubMatrix.DimensionConverter converter
public SubMatrix(MatrixND matrix, int dim, int start, int nb)
public SubMatrix(MatrixND matrix, int dim, int[] elem)
public int getNumberOfAssignedValue()
public MatrixIterator iterator()
MatrixNDpublic MatrixIterator iteratorNotZero()
MatrixNDpublic double getValue(int[] coordinates)
MatrixNDcoordinates - les différentes dimension à extraire. Le tableau doit
contenir toutes les dimensions de la matrice, et seulement des
nombres positifpublic void setValue(int[] coordinates,
double d)
MatrixNDcoordinates - dimension indicesd - new double value to set into matrix at specified dimensionsCopyright © 2004–2015 CodeLutin. All rights reserved.