de.aitools.aq.algebra.matrix
Class DenseMatrix

java.lang.Object
  extended by de.aitools.aq.algebra.matrix.DenseMatrix
All Implemented Interfaces:
Matrix

public class DenseMatrix
extends java.lang.Object
implements Matrix

Version:
$Id: DenseMatrix.java,v 1.3 2011/04/14 10:01:56 hoppe Exp $
Author:
dennis.hoppe(/\t)uni-weimar.de

Constructor Summary
DenseMatrix()
           
 
Method Summary
 void add(int i, int j, double value)
           
 double get(int i, int j)
           
 double[] getColumn(int j)
           
 double[] getRow(int i)
           
 double[][] getValues()
           
 int numColumns()
           
 int numRows()
           
 void set(int i, int j, double value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DenseMatrix

public DenseMatrix()
Method Detail

numRows

public int numRows()
Specified by:
numRows in interface Matrix

numColumns

public int numColumns()
Specified by:
numColumns in interface Matrix

get

public double get(int i,
                  int j)
Specified by:
get in interface Matrix

set

public void set(int i,
                int j,
                double value)
Specified by:
set in interface Matrix

add

public void add(int i,
                int j,
                double value)
Specified by:
add in interface Matrix

getRow

public double[] getRow(int i)
Specified by:
getRow in interface Matrix

getColumn

public double[] getColumn(int j)
Specified by:
getColumn in interface Matrix

getValues

public double[][] getValues()
Specified by:
getValues in interface Matrix