public interface ISparseEquation
Modifier and Type | Interface and Description |
---|---|
static class |
ISparseEquation.IndexType |
Modifier and Type | Method and Description |
---|---|
boolean |
factorization()
Factorization, for example LU decomposition, of the matrix.
|
boolean |
factorization(double tolerance)
Factorization, for example LU decomposition, of the matrix.
|
java.lang.String |
getBusId(int row)
get cached bus id by the row number
|
int |
getDimension()
get matrix dimension.
|
int |
getDimension(ISparseEquation.IndexType type)
get matrix dimension.
|
int |
getTotalElements()
Get the total elements in the matrix
|
int |
getZeroAii_row()
During the LU process, aii might be zero.
|
void |
increaseDimension()
Increase matrix dimension by 1.
|
boolean |
isFactorized()
Flag to indicate if the matrix is factorized
|
boolean |
isSquareMatrix()
Check if the matrix is square
|
void |
reset()
Reset the matrix to zero - set all aii and bi to 0.0 and clear the sparse structure,
and release memory if necessary
|
void |
setB2Unity(int i)
Set all b elements to 0.0 and bi = 1.0, a unity vector.
|
void |
setB2Zero()
Set all b elements to 0.0
|
void |
setBusId(int row,
java.lang.String id)
set bus id corresponding to the row
|
void |
setFactorized(boolean isLUFac)
set the factorized flag
|
void |
setToZero()
Reset all matrix element to zero, preserve the matrix sparse structure.
|
void |
solveEqn()
Solve the [A]X = B problem
|
boolean |
solveEqn(double tolerance)
LU decomposition of the matrix and the solve the [A]X = B problem.
|
boolean isSquareMatrix()
int getTotalElements()
void setB2Unity(int i)
i
- the element row numbervoid setB2Zero()
void reset()
void setToZero()
boolean isFactorized()
void setFactorized(boolean isLUFac)
isLUFac
- the flagint getDimension()
void increaseDimension()
n
- boolean factorization() throws IpssNumericException
IpssNumericException
boolean factorization(double tolerance) throws IpssNumericException
tolerance
- the tolerance for matrix singular detectionIpssNumericException
boolean solveEqn(double tolerance) throws IpssNumericException
tolerance
- the tolerance for matrix singular detectionIpssNumericException
void solveEqn() throws IpssNumericException
IpssNumericException
int getZeroAii_row()
java.lang.String getBusId(int row)
row
- row numbervoid setBusId(int row, java.lang.String id)
row
- row numberid
- bus idint getDimension(ISparseEquation.IndexType type)