|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--orgposada.nummethpos.matrixsolution.MatrixSolver | +--orgposada.nummethpos.matrixsolution.DirectMatrixSolver | +--orgposada.nummethpos.matrixsolution.CroutSolver
Solucion de sistemas de ecuaciones por el metodo de Crout. Cada vez que se manda llamar al Solver se crea un arreglo (vector) de soluciones distinto.
Field Summary | |
(package private) Crout |
cro
Llama a un metodo de factorizacion LU. |
Fields inherited from class orgposada.nummethpos.matrixsolution.MatrixSolver |
found |
Constructor Summary | |
CroutSolver()
Vacio. |
Method Summary | |
double[] |
solve(MatrixDouble A,
double[] b)
Factoriza la matriz y con substitucion se encuentra al vector solucion. |
RectangularMatrix |
solve(MatrixDouble A,
MatrixDouble B)
Factoriza la matriz y con substitucion se encuentra a la matriz solucion. |
boolean |
wasFound()
Checa el exito del metodo. |
Methods inherited from class java.lang.Object |
|
Field Detail |
Crout cro
Constructor Detail |
public CroutSolver()
Method Detail |
public boolean wasFound()
wasFound
in class MatrixSolver
public double[] solve(MatrixDouble A, double[] b) throws java.lang.ArithmeticException
solve
in class DirectMatrixSolver
A
- Debe ser "SquaredMatrix".
Matriz cuadrada (n x n) simetrica y definida positiva.b
- Vector columna (n x 1) del lado derecho.public RectangularMatrix solve(MatrixDouble A, MatrixDouble B) throws java.lang.ArithmeticException
A X = B r: Renglones c: Columnas A(rA*cA) X(rX*cX) = B(rB*cB) rA == cA == rX == rB cX == cB (rA*rA) (rA*cB) = (rA*cB)
A
- Debe ser de dimensiones cuadradas ("SquaredMatrix").
Matriz cuadrada (n x n) simetrica y definida positiva.B
- Matriz del lado derecho que se tomara vector a vector.
No necesariamente debera ser "SquaredMatrix".java.lang.IllegalArgumentException
- Los renglones de las
matrices A y B son distintos.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |