|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.altair.hwm.beans.utils.HWMMatrix
public class HWMMatrix
Title: HWMMatrix
Description: This is a utility class that will perform Matrix functions
Company: Altair Engineering, Inc.
Constructor Summary | |
---|---|
HWMMatrix()
Constructor |
|
HWMMatrix(int nNumRows,
int nNumCols)
Constructor |
Method Summary | |
---|---|
HWMMatrix |
Add(HWMMatrix hwmMatrix)
Add two matrices together |
double |
GetData(int nRow,
int nCol)
Get the data at the specified location |
double |
GetDeterminant()
Get the determinant of the matrix. |
HWMMatrix |
Inverse()
Get the inverse of the matrix. |
HWMMatrix |
Multiply(HWMMatrix hwmMatrix)
Multiplpy this matrix with another matrix |
void |
readExternal(java.io.ObjectInput objInput)
Loads the version and then calls the appropriate read function for the version |
void |
SetData(int nRow,
int nCol,
double dData)
Set the data at the specified location |
HWMMatrix |
Subtract(HWMMatrix hwmMatrix)
Subtract another matrix from this |
java.lang.String |
toString()
Represents the matix as a String. |
void |
writeExternal(java.io.ObjectOutput objOutput)
Save the persistent properties |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HWMMatrix()
public HWMMatrix(int nNumRows, int nNumCols)
Method Detail |
---|
public void SetData(int nRow, int nCol, double dData) throws java.lang.ArrayIndexOutOfBoundsException
nRow
- The row indexnCol
- The column indexdData
- The data to be set at that location
java.lang.ArrayIndexOutOfBoundsException
public double GetData(int nRow, int nCol) throws java.lang.ArrayIndexOutOfBoundsException
nRow
- The row indexnCol
- The column index
java.lang.ArrayIndexOutOfBoundsException
public HWMMatrix Add(HWMMatrix hwmMatrix) throws java.lang.Exception
hwmMatrix
- The other matrix
java.lang.Exception
public HWMMatrix Subtract(HWMMatrix hwmMatrix) throws java.lang.Exception
hwmMatrix
- The other matrix
java.lang.Exception
public HWMMatrix Multiply(HWMMatrix hwmMatrix) throws java.lang.Exception
hwmMatrix
- The other matrix
java.lang.Exception
public double GetDeterminant() throws java.lang.Exception
java.lang.Exception
public HWMMatrix Inverse() throws java.lang.Exception
java.lang.Exception
public java.lang.String toString()
toString
in class java.lang.Object
public void writeExternal(java.io.ObjectOutput objOutput) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
objOutput
- The stream to which data will be written
java.io.IOException
public void readExternal(java.io.ObjectInput objInput) throws java.lang.ClassNotFoundException, java.io.IOException
readExternal
in interface java.io.Externalizable
objInput
- The stream from which data will be read
IOException,
- ClassNotFoundException
java.lang.ClassNotFoundException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |