|
JavaView© v3.95.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjv.object.PsObject
jvx.numeric.PnSparseMatrix
Sparse matrix representation.
Class was extracted from earlier code in jvx.numeric.PnStiffMatrix.
| Field Summary | |
int |
m_nop
Dimension of full matrix. |
PiVector[] |
m_sindx
For each row of the full matrix exists an array listing the column position of each non-zero entry. |
PiVector |
m_snoe
Count number of entries in each line of the sparse matrix, i.e. count number of connected edges and add 1 for itself (the diagonal entry). |
PdVector[] |
m_stiff
For each row of the full matrix exists an array listing the non-zero values. |
| Fields inherited from class jv.object.PsObject |
HAS_CONFIG_PANEL, HAS_INFO_PANEL, HAS_LABEL_PANEL, HAS_MATERIAL_PANEL, HAS_TEXTURE_PANEL, HAS_VECTOR_PANEL, INSPECTOR_INFO, INSPECTOR_INFO_EXT, IS_DELETED, IS_FIXED, IS_FOCUSSED, IS_PICKED, IS_SELECTED, IS_USED, NUM_TAGS |
| Constructor Summary | |
PnSparseMatrix()
|
|
| Method Summary | |
static PdVector |
diagonalSolve(PnSparseMatrix smat,
PdVector x,
PdVector b,
int dim)
Solve equation smat*x=b assuming that smat is diagonal matrix. |
int |
getIndex(int aLine,
int anIndex)
For given component s[aLine][anIndex] of the full matrix s this method finds the position in the index vector m_sindx[aLine] of the row aLine which refers to the full matrix component. |
static PdVector |
leftMult(PnSparseMatrix smat,
PdVector in,
PdVector out)
Compute out=smat*in. |
static PdVector |
leftMult(PnSparseMatrix smat,
PdVector in,
PdVector out,
int dim)
Compute out=smat*in. |
static void |
multScalar(PnSparseMatrix smat,
double d)
Multiply all entries of matrix with given factor. |
static PdVector |
rightMult(PnSparseMatrix smat,
PdVector in,
PdVector out)
Compute out=in*smat. |
static PdVector |
rightMult(PnSparseMatrix smat,
PdVector in,
PdVector out,
int dim)
Compute out=in*smat. |
java.lang.String |
toString()
Create a full matrix and print all components in a multi-line string representation. |
| Methods inherited from class jv.object.PsObject |
addInspector, addUpdateListener, assureInspector, clearTag, clone, clone, clone, copy, getFather, getInfoPanel, getInspector, getName, getNumObjects, getSymbol, hasInspector, hasTag, hasUpdateListener, init, instanceOf, instanceOf, newInspector, newInspector, removeInspector, removeInspector, removeUpdateListener, setName, setParent, setSymbol, setTag, update, updatePanels |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public int m_nop
public PiVector m_snoe
public PiVector[] m_sindx
m_stiffpublic PdVector[] m_stiff
m_sindx| Constructor Detail |
public PnSparseMatrix()
| Method Detail |
public int getIndex(int aLine,
int anIndex)
This method is the central method for handling the sparse matrix representation.
public java.lang.String toString()
toString in class PsObject
public static PdVector leftMult(PnSparseMatrix smat,
PdVector in,
PdVector out,
int dim)
public static PdVector leftMult(PnSparseMatrix smat,
PdVector in,
PdVector out)
public static PdVector rightMult(PnSparseMatrix smat,
PdVector in,
PdVector out,
int dim)
public static PdVector rightMult(PnSparseMatrix smat,
PdVector in,
PdVector out)
public static PdVector diagonalSolve(PnSparseMatrix smat,
PdVector x,
PdVector b,
int dim)
public static void multScalar(PnSparseMatrix smat,
double d)
|
JavaView© v3.95.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||