|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.jhu.ece.iacl.jist.structures.matrix.Matrix3
public class Matrix3
Matrix 3d implementation Values are always stored as double.
Field Summary | |
---|---|
double[][][] |
mat
Matrix 3d access This is not good encapsulation and will be deprectated in future iterations! Please use getters and setters when accessing matrix3d. |
Constructor Summary | |
---|---|
Matrix3(double[][][] m)
Instantiates a new matrix3. |
|
Matrix3(ImageData vol)
Instantiates a new matrix3. |
|
Matrix3(int d1,
int d2,
int d3)
Instantiates a new matrix3. |
|
Matrix3(int d1,
int d2,
int d3,
double a)
Instantiates a new matrix3. |
Method Summary | |
---|---|
Matrix3 |
add(double a)
Adds the. |
Matrix3 |
add(Matrix3 m)
Adds the. |
Matrix3 |
clone()
|
ImageData |
createVolume()
Creates the volume. |
Matrix3 |
div(double a)
Div. |
Matrix3 |
div(Matrix3 m)
Div. |
double |
get(int i,
int j,
int k)
Gets the. |
int |
getCols()
Gets the cols. |
Matrix2[] |
getMatrix2d()
Gets the matrix2d. |
Matrix2 |
getMatrix2d(int i)
Gets the matrix2d. |
int |
getRows()
Gets the rows. |
int |
getSlices()
Gets the slices. |
Matrix3 |
mul(double a)
Mul. |
Matrix3 |
mul(Matrix3 m)
Mul. |
Matrix3 |
normalize()
Normalize matrix. |
void |
printNonZeroString(int max)
Debugging routine for printing non-zero matrix elements. |
void |
set(int i,
int j,
int k,
double a)
Sets the. |
Matrix3 |
sub(double a)
Sub. |
Matrix3 |
sub(Matrix3 m)
Sub. |
double[][][] |
toArray()
To array. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public double[][][] mat
Constructor Detail |
---|
public Matrix3(int d1, int d2, int d3)
d1
- the d1d2
- the d2d3
- the d3public Matrix3(int d1, int d2, int d3, double a)
d1
- the d1d2
- the d2d3
- the d3a
- the apublic Matrix3(ImageData vol)
vol
- the volpublic Matrix3(double[][][] m)
m
- the mMethod Detail |
---|
public ImageData createVolume()
public int getRows()
public int getCols()
public int getSlices()
public double[][][] toArray()
public void set(int i, int j, int k, double a)
i
- the ij
- the jk
- the ka
- the apublic double get(int i, int j, int k)
i
- the ij
- the jk
- the k
public Matrix2[] getMatrix2d()
public Matrix2 getMatrix2d(int i)
i
- the i
public Matrix3 add(double a)
a
- the a
public Matrix3 sub(double a)
a
- the a
public Matrix3 mul(double a)
a
- the a
public Matrix3 div(double a)
a
- the a
public Matrix3 add(Matrix3 m)
m
- the m
public Matrix3 sub(Matrix3 m)
m
- the m
public Matrix3 mul(Matrix3 m)
m
- the m
public Matrix3 clone()
clone
in class java.lang.Object
public Matrix3 div(Matrix3 m)
m
- the m
public Matrix3 normalize()
public java.lang.String toString()
toString
in class java.lang.Object
public void printNonZeroString(int max)
max
- the max
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |