All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class rn.operator.Matrix

java.lang.Object
   |
   +----rn.operator.Matrix

public class Matrix
extends Object


Variable Index

 o d

Constructor Index

 o Matrix(float[][])
fast (second) index is the row dimension.
 o 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.
 o Matrix(Matrix)

Method Index

 o copy()
 o equals(Object)
Compares two Objects for equality.
 o getElement(int, int)
 o setElement(int, int, float)
 o toString()
Returns a string representation of the object.

Variables

 o d
 public float d[][]

Constructors

 o 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.

 o Matrix
 public Matrix(float v[][])
fast (second) index is the row dimension.

 o Matrix
 public Matrix(Matrix src)

Methods

 o copy
 public Matrix copy()
 o setElement
 public void setElement(int row,
                        int col,
                        float v)
 o getElement
 public float getElement(int row,
                         int col)
 o equals
 public boolean equals(Object obj)
Compares two Objects for equality.

Overrides:
equals in class Object
 o 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