jsci.maths.matrix
Class DoubleMatrix<E extends DoubleArray2D,F extends DoubleArray1D>

java.lang.Object
  extended by jsci.maths.matrix.Matrix<java.lang.Double,E,F>
      extended by jsci.maths.matrix.DoubleMatrix<E,F>

public final class DoubleMatrix<E extends DoubleArray2D,F extends DoubleArray1D>
extends Matrix<java.lang.Double,E,F>


Field Summary
 
Fields inherited from class jsci.maths.matrix.Matrix
algorithms, array, factory
 
Constructor Summary
DoubleMatrix(E array, AlgorithmsFactory<java.lang.Double,E,F> factory)
           
 
Method Summary
 DoubleVector<F> act(DoubleVector<F> v)
           
 DoubleMatrix<E,F> add(DoubleMatrix<E,F> m)
           
static DoubleMatrix<DoubleArray2D,DoubleArray1D> create(DoubleArray2D array)
           
 E getArray2D()
           
 double getDouble(int i, int j)
           
 DoubleMatrix<E,F> multiply(DoubleMatrix<E,F> m)
           
 DoubleMatrix<E,F> scalarMultiply(double x)
           
 void setDouble(int i, int j, double x)
           
 DoubleMatrix<E,F> subtract(DoubleMatrix<E,F> m)
           
 DoubleMatrix<E,F> transpose()
           
 
Methods inherited from class jsci.maths.matrix.Matrix
act, add, columns, equals, equals, get, multiply, rows, scalarMultiply, set, subtract, toString, trace
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DoubleMatrix

public DoubleMatrix(E array,
                    AlgorithmsFactory<java.lang.Double,E,F> factory)
Method Detail

create

public static DoubleMatrix<DoubleArray2D,DoubleArray1D> create(DoubleArray2D array)

getArray2D

public E getArray2D()
Overrides:
getArray2D in class Matrix<java.lang.Double,E extends DoubleArray2D,F extends DoubleArray1D>

getDouble

public double getDouble(int i,
                        int j)

setDouble

public void setDouble(int i,
                      int j,
                      double x)

transpose

public DoubleMatrix<E,F> transpose()
Overrides:
transpose in class Matrix<java.lang.Double,E extends DoubleArray2D,F extends DoubleArray1D>

add

public DoubleMatrix<E,F> add(DoubleMatrix<E,F> m)

subtract

public DoubleMatrix<E,F> subtract(DoubleMatrix<E,F> m)

multiply

public DoubleMatrix<E,F> multiply(DoubleMatrix<E,F> m)

scalarMultiply

public DoubleMatrix<E,F> scalarMultiply(double x)

act

public DoubleVector<F> act(DoubleVector<F> v)