org.ode4j.math
Class DMatrixN
java.lang.Object
org.ode4j.math.DMatrixN
public class DMatrixN
- extends java.lang.Object
- Author:
- Tilmann Zaeschke
Method Summary |
void |
clearLowerTriangle()
|
void |
clearUpperTriangle()
|
double |
maxDifference(DMatrixN a)
|
DMatrixN |
mulNew(DMatrixN a)
|
DMatrixN |
newSubMatrix(int np,
int[] p,
int nq,
int[] q)
This returns a new Matrix containing a copy of the selected
sub-matrix. |
DMatrixN |
reTranspose()
This returns a new Matrix containing a transposed of this matrix. |
void |
set(DMatrixN mat)
|
void |
set(double a)
|
void |
set(double[] da,
int da_ofs)
|
void |
set(double[] _data,
int rowskip,
int colskip)
|
void |
set(int i,
int j,
double a)
|
void |
setCol(int i,
DVector3 v3)
|
void |
setOfs(int ofs,
DVector3 v3)
|
java.lang.String |
toString()
|
static DMatrixN |
wrap(double[] a,
int i,
int j)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DMatrixN
public DMatrixN(int max_i,
int max_j)
DMatrixN
public DMatrixN(DMatrixN matrix)
wrap
public static DMatrixN wrap(double[] a,
int i,
int j)
set
public void set(DMatrixN mat)
setOfs
public void setOfs(int ofs,
DVector3 v3)
setCol
public void setCol(int i,
DVector3 v3)
set
public void set(double[] da,
int da_ofs)
set
public void set(double a)
set
public void set(double[] _data,
int rowskip,
int colskip)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
reTranspose
public DMatrixN reTranspose()
- This returns a new Matrix containing a transposed of this matrix.
Creates new matrix.
- Returns:
- New transposed matrix.
newSubMatrix
public DMatrixN newSubMatrix(int np,
int[] p,
int nq,
int[] q)
- This returns a new Matrix containing a copy of the selected
sub-matrix.
- Parameters:
np
- p
- nq
- q
-
- Returns:
- New sub-matrix.
mulNew
public DMatrixN mulNew(DMatrixN a)
clearUpperTriangle
public void clearUpperTriangle()
clearLowerTriangle
public void clearLowerTriangle()
maxDifference
public double maxDifference(DMatrixN a)
set
public void set(int i,
int j,
double a)
- Parameters:
i
- rowj
- columna
- value at (i,j)