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.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 |
|---|---|
double |
getValue(int[] coordinates)
Renvoie un element de la matrice demandée en fonction des dimensions
passé en paramètre.
|
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.
|
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, 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 MatrixIterator iterator()
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-2011 CodeLutin. All Rights Reserved.