|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--orgposada.nummethpos.abstractmatrix.AbstractMatrix | +--orgposada.nummethpos.abstractmatrix.matrixdouble.MatrixDouble | +--orgposada.nummethpos.abstractmatrix.matrixdouble.BandedMatrix
Las matrices bandadas se almacenan en un arreglo bidimensional inicializado en ceros. Aunque su apariencia logica es con un ancho alrededor de la diagonal.
Original:
width
1 2 3 0 0 height
1 2 3 4 0 height
0 2 3 4 5
0 0 3 4 5
0 0 0 4 5
Almacenado:
0 1 2 3
1 2 3 4
2 3 4 5
3 4 5 0
4 5 0 0
Field Summary | |
private int |
columns
|
private int |
height
|
private int |
rows
Para las columnas del ancho. |
private int |
width
Para los renglones de altura. |
Fields inherited from class orgposada.nummethpos.abstractmatrix.matrixdouble.MatrixDouble |
e, findedColumn, findedRow, memoryColumns, memoryRows |
Fields inherited from class orgposada.nummethpos.abstractmatrix.AbstractMatrix |
squared |
Constructor Summary | |
BandedMatrix(double[][] matrix,
int heightRows,
int widthColumns)
Crea una matriz a partir de un arreglo bidimensional de n renglones por m columnas (n x m). |
|
BandedMatrix(int rows,
int columns,
int heightRows,
int widthColumns)
Crea una matriz y la limpia (matriz nula). |
Method Summary | |
BandedMatrix |
add(MatrixDouble mdB)
Suma de matrices: "MatrizActual + mdB". |
private void |
copyArrayIntoBand(double[][] matrix)
Solo para el constructor del array |
double |
getE(int row,
int column)
Obtiene el valor del elemento (i, j) en posicion relativa. |
boolean |
isStoredAt(int i,
int j)
Checa la existancia en memoria del elemento de lo contrario, el elemento es cero. |
MatrixDouble |
newMatrix(int rows,
int columns,
int memoryRows,
int memoryColumns)
Implementa la agrupacion de constructores. |
void |
setE(int row,
int column,
double value)
Asignar un valor al elemento(i, j) en posicion relativa. |
BandedMatrix |
substract(MatrixDouble mdB)
Resta de matrices: "MatrizActual - mdB". |
Methods inherited from class orgposada.nummethpos.abstractmatrix.matrixdouble.MatrixDouble |
add, backSubstitution, clean, copyFrom, createCopyFrom, fill, fillDiagonal, findMaxAbs, findMaxAbsOutOfDiagonal, forwardSubstitution, getDiagonal, getFindedColumn, getFindedRow, getMemoryElementAt, hasSameSize, multiply, multiplyBy, normalizeColumns, premultiplyBy, print, setMemoryElementAt, setMemoryMatrix, setToIdentity, substract, toDoubleArray, toString, transpose |
Methods inherited from class orgposada.nummethpos.abstractmatrix.AbstractMatrix |
getColumns, getRows, isSquared |
Methods inherited from class java.lang.Object |
|
Field Detail |
private int height
private int width
private int rows
private int columns
Constructor Detail |
public BandedMatrix(int rows, int columns, int heightRows, int widthColumns)
public BandedMatrix(double[][] matrix, int heightRows, int widthColumns)
Method Detail |
public MatrixDouble newMatrix(int rows, int columns, int memoryRows, int memoryColumns)
widthColumns = memoryColumns - height + 1;
newMatrix
in class MatrixDouble
private void copyArrayIntoBand(double[][] matrix)
public boolean isStoredAt(int i, int j)
isStoredAt
in class AbstractMatrix
i
- Renglon logicoj
- Columna logicapublic void setE(int row, int column, double value)
setE
in class MatrixDouble
public double getE(int row, int column)
getE
in class MatrixDouble
public BandedMatrix add(MatrixDouble mdB)
bmRes = bmA.add(rmB);
public BandedMatrix substract(MatrixDouble mdB)
bmRes = bmA.substract(rmB);
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |