net.metanotion.numerics
Class SparseMatrix

java.lang.Object
  extended by net.metanotion.numerics.SparseMatrix

public class SparseMatrix
extends java.lang.Object


Field Summary
protected  double[] aa
           
protected  int arraysize
           
protected  int columns
           
protected  int count
           
protected  int[] ja
           
protected  int rows
           
 
Constructor Summary
SparseMatrix(int rows, int columns)
           
 
Method Summary
 double get(int x, int y)
           
 void setElementAt(double val, int x, int y)
           
 double[] times(double[] x)
           
 void times(double[] x, double[] out)
           
 double[] timesWithTranpose(double[] x)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rows

protected int rows

columns

protected int columns

count

protected int count

arraysize

protected int arraysize

aa

protected double[] aa

ja

protected int[] ja
Constructor Detail

SparseMatrix

public SparseMatrix(int rows,
                    int columns)
Method Detail

times

public void times(double[] x,
                  double[] out)

times

public double[] times(double[] x)

timesWithTranpose

public double[] timesWithTranpose(double[] x)

setElementAt

public void setElementAt(double val,
                         int x,
                         int y)

get

public double get(int x,
                  int y)