All Packages Class Hierarchy This Package Previous Next Index
Class rn.operator.Matrix
java.lang.Object
|
+----rn.operator.Matrix
- public class Matrix
- extends Object
-
d
-
-
Matrix(float[][])
- fast (second) index is the row dimension.
-
Matrix(int, int)
-
fast (second) index is the row dimension.
col -->
r | r11 r12 r13
o | r21 r22 r23
w V
The matrix has 3 columns and 2 rows.
-
Matrix(Matrix)
-
-
copy()
-
-
equals(Object)
- Compares two Objects for equality.
-
getElement(int, int)
-
-
setElement(int, int, float)
-
-
toString()
- Returns a string representation of the object.
d
public float d[][]
Matrix
public Matrix(int row,
int col)
- fast (second) index is the row dimension.
col -->
r | r11 r12 r13
o | r21 r22 r23
w V
The matrix has 3 columns and 2 rows.
The column index (0-2) is the fast, second index
(the one you want to use inside of a for loop).
Consequently, m.v[1][2] = r12 and vice versa.
Matrix
public Matrix(float v[][])
- fast (second) index is the row dimension.
Matrix
public Matrix(Matrix src)
copy
public Matrix copy()
setElement
public void setElement(int row,
int col,
float v)
getElement
public float getElement(int row,
int col)
equals
public boolean equals(Object obj)
- Compares two Objects for equality.
- Overrides:
- equals in class Object
toString
public String toString()
- Returns a string representation of the object.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index