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, wait
backwardSubstitution, divInPlace, rotateGivens, subInPlace, wrap
public FactorizedFltMatrix factorize(int[] ref)
public void addInPlace(int f, int t, float b)
FloatMatrix
addInPlace
in interface FloatMatrix
f
- 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()
FloatMatrix
getRowCount
in interface FloatMatrix
public int getColumnCount()
FloatMatrix
getColumnCount
in interface FloatMatrix
public void setValue(int row, int column, float value)
FloatMatrix
setValue
in interface FloatMatrix
row
- location of new valuecolumn
- location of new valuevalue
- value to storepublic float getValue(int row, int column)
FloatMatrix
getValue
in interface FloatMatrix
row
- location of new valuecolumn
- location of new valuepublic void multInPlace(int row, int column, float value)
FloatMatrix
multInPlace
in interface FloatMatrix
row
- location of updated valuecolumn
- location of updated valuevalue
- to multiply at given location