Class Matrix

java.lang.Object
  extended bySwarmObjectImpl
      extended byMatrix

public class Matrix
extends SwarmObjectImpl

This is the class for matrixes and vectors.

Author:
Marco Agagliate
See Also:
Serialized Form

Field Summary
 double[][] matr
          This is a matrix of double
 double[] vect
          This is a vector of double
 
Constructor Summary
Matrix(Zone aZone, int rows)
          Constructors for a new Matrix.
Matrix(Zone aZone, int rows, int cols)
           
 
Method Summary
 int getLength()
           
 double P(int rows)
          This method returns a double from a position of the vector.
 void P$setFrom(int rows, double x)
          This method sets a double in a position of the vector.
 double R$C(int rows, int cols)
          This method returns a double from a position of the matrix.
 void R$C$setFrom(int rows, int cols, double x)
          This method sets a double in a position of the matrix.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vect

public double[] vect
This is a vector of double


matr

public double[][] matr
This is a matrix of double

Constructor Detail

Matrix

public Matrix(Zone aZone,
              int rows)
Constructors for a new Matrix.


Matrix

public Matrix(Zone aZone,
              int rows,
              int cols)
Method Detail

P$setFrom

public void P$setFrom(int rows,
                      double x)
This method sets a double in a position of the vector.


P

public double P(int rows)
This method returns a double from a position of the vector.


getLength

public int getLength()

R$C$setFrom

public void R$C$setFrom(int rows,
                        int cols,
                        double x)
This method sets a double in a position of the matrix.


R$C

public double R$C(int rows,
                  int cols)
This method returns a double from a position of the matrix.