public class SpSymFltMatrix extends java.lang.Object implements FloatMatrix
FloatMatrix.RowFunction| Modifier and Type | Method and Description |
|---|---|
void |
addInPlace(int f,
int t,
float b)
Add a value in place
|
void |
dump(java.lang.String[] name,
java.io.PrintWriter pw) |
FactorizedFltMatrix |
factorize(int[] ref) |
FactorizedFltMatrix |
factorize(SpSymMtrxFactPattern pat)
Create a factorized susceptance matrix using a saved pattern
Neither the pattern nor susceptance arrays are modified
|
float[] |
getBDiag() |
int |
getColumnCount()
Return the number of columns in the matrix
|
int |
getRowCount()
Return the number of rows in the matrix.
|
float |
getValue(int row,
int column)
Get a value
|
void |
incBdiag(int bus,
float b)
modify susceptence entry on the diagonal
|
void |
incBoffdiag(int br,
float b)
modify susceptance for an off-diagonal entry
|
void |
multInPlace(int row,
int column,
float value)
Multiply a value in place
|
void |
setValue(int row,
int column,
float value)
Set a value
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbackwardSubstitution, divInPlace, rotateGivens, subInPlace, wrappublic FactorizedFltMatrix factorize(int[] ref)
public void addInPlace(int f,
int t,
float b)
FloatMatrixaddInPlace in interface FloatMatrixf - location of updated valuet - location of updated valueb - to add at given locationpublic void incBdiag(int bus,
float b)
public void incBoffdiag(int br,
float b)
public FactorizedFltMatrix factorize(SpSymMtrxFactPattern pat)
bdiag - diagonal susceptance values (array with size equal to number
of buses)boffdiag - off-diagonal susceptance values (array with size equal to
number of branches)public void dump(java.lang.String[] name,
java.io.PrintWriter pw)
public float[] getBDiag()
public int getRowCount()
FloatMatrixgetRowCount in interface FloatMatrixpublic int getColumnCount()
FloatMatrixgetColumnCount in interface FloatMatrixpublic void setValue(int row,
int column,
float value)
FloatMatrixsetValue in interface FloatMatrixrow - location of new valuecolumn - location of new valuevalue - value to storepublic float getValue(int row,
int column)
FloatMatrixgetValue in interface FloatMatrixrow - location of new valuecolumn - location of new valuepublic void multInPlace(int row,
int column,
float value)
FloatMatrixmultInPlace in interface FloatMatrixrow - location of updated valuecolumn - location of updated valuevalue - to multiply at given location