fr.lip6.type.matrix
Class DoubleMatrix

java.lang.Object
  extended by fr.lip6.type.matrix.MLMatrix<DoubleVector[]>
      extended by fr.lip6.type.matrix.DoubleMatrix
All Implemented Interfaces:
java.io.Serializable

public class DoubleMatrix
extends MLMatrix<DoubleVector[]>

See Also:
Serialized Form

Field Summary
 
Fields inherited from class fr.lip6.type.matrix.MLMatrix
nbCols, nbRows, values
 
Constructor Summary
DoubleMatrix(DoubleVector[] m)
           
 
Method Summary
 MLMatrix<DoubleVector[]> add(MLMatrix<DoubleVector[]> m)
          returns a new matrix sum of this matrix with the argument.
 double dot(MLMatrix<DoubleVector[]> m)
          return the dot product between matrices, ie sum of each components product.
 MLMatrix<DoubleVector[]> mult(double d)
          produce a new matrix with each component multiplied by a double
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoubleMatrix

public DoubleMatrix(DoubleVector[] m)
Method Detail

add

public MLMatrix<DoubleVector[]> add(MLMatrix<DoubleVector[]> m)
Description copied from class: MLMatrix
returns a new matrix sum of this matrix with the argument.

Specified by:
add in class MLMatrix<DoubleVector[]>
Parameters:
m - the matrix to add to this
Returns:
the sum

dot

public double dot(MLMatrix<DoubleVector[]> m)
Description copied from class: MLMatrix
return the dot product between matrices, ie sum of each components product.

Specified by:
dot in class MLMatrix<DoubleVector[]>
Returns:

mult

public MLMatrix<DoubleVector[]> mult(double d)
Description copied from class: MLMatrix
produce a new matrix with each component multiplied by a double

Specified by:
mult in class MLMatrix<DoubleVector[]>
Returns: