matrixsolution
Class GaussJordan
java.lang.Object
|
+--matrixsolution.GaussJordan
- public class GaussJordan
- extends java.lang.Object
Solucion de ecuaciones lineales con el metodo de Gauss Jordan.
- Version:
- 1.0, 31/08/2001
- Author:
- Omar Posada Villarreal
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
n
private int n
m
private int m
iCol
private int iCol
iRow
private int iRow
Am
private RectangularMatrix Am
Bm
private RectangularMatrix Bm
iPivot
private int[] iPivot
indexRow
private int[] indexRow
indexCol
private int[] indexCol
GaussJordan
public GaussJordan()
searchPivotElement
private void searchPivotElement(int iCol)
- Busca los pivotes mas grandes y los almacena.
interchangeRows
private void interchangeRows()
- Intercambia los renglones cuando el pivote se hace cero.
undoInterchanges
private void undoInterchanges()
- Restituir los cambios para encontrar la solucion.
dividePivotRowByPivotElement
private void dividePivotRowByPivotElement()
- Dividir el renglon pivote entre el elemento pivote
localizado en "iRow" e "iCol".
reduceRows
private void reduceRows()
- Se reducen los renglones excepto por el pivote uno.
GaussJordanSolve
public void GaussJordanSolve(RectangularMatrix rmA,
RectangularMatrix rmB)
- Solucion de ecuaciones lineales Gauss-Jordan con pivoteo.
Luego del procesamiento, "rmA" se convierte en su inversa y "rmB"
es el conjunto de vectores solucion.
- Parameters:
rmA
- RectangularMatrix Matriz cuadrada (n x n)de entrada.rmB
- RectangularMatrix Matriz (n x m) de entrada.- See Also:
abstracmatrix.RectangularMatrix