|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jcae.mesh.amibe.metrics.Matrix3D
public class Matrix3D
General 3D matrix.
| Field Summary | |
|---|---|
protected double[] |
data
|
| Constructor Summary | |
|---|---|
Matrix3D()
Create a Matrix3D instance and set it to the identity
matrix. |
|
Matrix3D(double[] e1,
double[] e2,
double[] e3)
Create a Matrix3D instance from three column vectors. |
|
| Method Summary | |
|---|---|
void |
apply(double[] in,
double[] out)
|
static double |
computeNormal3D(double[] p0,
double[] p1,
double[] p2,
double[] tempD1,
double[] tempD2,
double[] ret)
|
static double |
computeNormal3DT(double[] p0,
double[] p1,
double[] p2,
double[] tempD1,
double[] tempD2,
double[] ret)
|
protected void |
copyColumn(int i,
double[] dest)
|
Matrix3D |
multL(Matrix3D A)
Create a Matrix3D instance containing the multiplication
of another Matrix3D instance by this one. |
Matrix3D |
multR(Matrix3D A)
Create a Matrix3D instance containing the multiplication
of this Matrix3D instance by another one. |
static double |
norm(double[] A)
Return the Euclidian norm of a 3D vector. |
static double |
prodSca(double[] A,
double[] B)
Return the dot product between two 3D vectors. |
static void |
prodVect3D(double[] v1,
double[] v2,
double[] ret)
Return the outer product of two 3D vectors. |
void |
reset()
Reset all coefficients to zero. |
void |
saxpby0(double l1,
Matrix3D a,
double l2,
Matrix3D b)
|
protected void |
scale(double f)
Multiply all matrix coefficients by a factor. |
protected void |
setDiagonal(double d1,
double d2,
double d3)
Set diagonal coefficients. |
protected void |
swap(int i,
int j)
|
java.lang.String |
toString()
|
void |
transp()
Transpose current matrix. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected double[] data
| Constructor Detail |
|---|
public Matrix3D()
Matrix3D instance and set it to the identity
matrix.
public Matrix3D(double[] e1,
double[] e2,
double[] e3)
Matrix3D instance from three column vectors.
e1 - first column.e2 - second column.e3 - third column.| Method Detail |
|---|
public void reset()
public void transp()
public Matrix3D multR(Matrix3D A)
Matrix3D instance containing the multiplication
of this Matrix3D instance by another one.
A - another Matrix3D
public Matrix3D multL(Matrix3D A)
Matrix3D instance containing the multiplication
of another Matrix3D instance by this one.
A - another Matrix3D
public void apply(double[] in,
double[] out)
protected void scale(double f)
f - scale factor
protected void setDiagonal(double d1,
double d2,
double d3)
d1 - first diagonal coefficientd2 - second diagonal coefficientd3 - third diagonal coefficient
public void saxpby0(double l1,
Matrix3D a,
double l2,
Matrix3D b)
protected final void swap(int i,
int j)
protected final void copyColumn(int i,
double[] dest)
public static double prodSca(double[] A,
double[] B)
A - first 3D vectorB - second 3D vector
public static double norm(double[] A)
A - 3D vector.
public static void prodVect3D(double[] v1,
double[] v2,
double[] ret)
v1 - first vectorv2 - second vectorret - allocated array to store the output product.
public static final double computeNormal3D(double[] p0,
double[] p1,
double[] p2,
double[] tempD1,
double[] tempD2,
double[] ret)
public static final double computeNormal3DT(double[] p0,
double[] p1,
double[] p2,
double[] tempD1,
double[] tempD2,
double[] ret)
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||