public class SparseEqnMatrix2x2Impl extends SparseEqnDoubleImpl implements ISparseEqnMatrix2x2
ISparseEquation.IndexType| Constructor and Description |
|---|
SparseEqnMatrix2x2Impl(int n) |
SparseEqnMatrix2x2Impl(int rows,
int cols,
int order) |
| Modifier and Type | Method and Description |
|---|---|
void |
addToA(Matrix_xy m,
int i,
int j)
Add the aij element to the matrix.
|
void |
addToB(org.apache.commons.math3.complex.Complex c,
int i)
add the complex object to the B vector
|
void |
addToB(Vector_xy bi,
int i)
add to bi element.
|
Matrix_xy |
getA(int i,
int j)
Get the aij object.
|
Vector_xy |
getX(int i)
Get the bi element.
|
int |
getZeroA_row()
Get zero aii row number, in case the matrix is singular
|
void |
increaseDimension()
Increase matrix dimension by 1.
|
void |
setA(Matrix_xy m,
int i,
int j)
Set the aij element.
|
void |
setB(org.apache.commons.math3.complex.Complex c,
int i)
Set bi element.
|
void |
setBi(Vector_xy bi,
int i)
Set bi element.
|
addToAij, addToBi, err, factorization, factorization, getAij, getElem, getTotalElements, getXi, getXVector, reset, setAij, setB2Unity, setB2Zero, setBi, setBVector, setElem, setToZero, solveEqn, solveEqn, toStringgetBusId, getDimension, getDimension, getZeroAii_row, isFactorized, isSquareMatrix, setBusId, setFactorized, setZeroAii_row, solveEqnequals, getClass, hashCode, notify, notifyAll, wait, wait, waitfactorization, factorization, getBusId, getDimension, getDimension, getTotalElements, getZeroAii_row, isFactorized, isSquareMatrix, reset, setB2Unity, setB2Zero, setBusId, setFactorized, setToZero, solveEqn, solveEqnpublic SparseEqnMatrix2x2Impl(int n)
public SparseEqnMatrix2x2Impl(int rows,
int cols,
int order)
public void increaseDimension()
ISparseEquationincreaseDimension in interface ISparseEquationincreaseDimension in class SparseEqnDoubleImpln - matrix dimensionpublic void addToA(Matrix_xy m, int i, int j)
addToA in interface ISparseEqnObject<Matrix_xy,Vector_xy>m - the aij elementi - the element row numberj - the element column numberpublic Vector_xy getX(int i)
getX in interface ISparseEqnObject<Matrix_xy,Vector_xy>i - the element row numberpublic void setA(Matrix_xy m, int i, int j)
setA in interface ISparseEqnObject<Matrix_xy,Vector_xy>m - the aij elementi - the element row numberj - the element column numberpublic Matrix_xy getA(int i, int j)
ISparseEqnObjectgetA in interface ISparseEqnObject<Matrix_xy,Vector_xy>i - the element row numberj - the element column numberpublic void setB(org.apache.commons.math3.complex.Complex c,
int i)
setB in interface ISparseEqnMatrix2x2c - the bi elementi - row numberpublic void addToB(org.apache.commons.math3.complex.Complex c,
int i)
addToB in interface ISparseEqnMatrix2x2c - the bi elementi - row numberpublic void setBi(Vector_xy bi, int i)
setBi in interface ISparseEqnObject<Matrix_xy,Vector_xy>bi - the bi elementi - row numberpublic void addToB(Vector_xy bi, int i)
ISparseEqnObjectaddToB in interface ISparseEqnObject<Matrix_xy,Vector_xy>bi - the bi elementi - row numberpublic int getZeroA_row()
ISparseEqnObjectgetZeroA_row in interface ISparseEqnObject<Matrix_xy,Vector_xy>