jsci.util.array
Class FileDoubleArray2D

java.lang.Object
  extended by jsci.util.array.AbstractDoubleArray2D
      extended by jsci.util.array.FileDoubleArray2D
All Implemented Interfaces:
Array2D<java.lang.Double>, DoubleArray2D

public class FileDoubleArray2D
extends AbstractDoubleArray2D

Uses an underlying file as storage.


Constructor Summary
FileDoubleArray2D(double[][] array)
           
FileDoubleArray2D(int rows, int cols)
           
FileDoubleArray2D(int rows, int cols, java.io.File f, int numBuffers, boolean bufferDiag)
           
FileDoubleArray2D(int rows, int cols, java.lang.String filename, int numBuffers, boolean bufferDiag)
           
 
Method Summary
 void close()
           
 int columns()
           
 FileDoubleArray2D create(int rows, int cols)
           
 int getBufferHits()
           
 int getBufferMisses()
           
 double getDouble(int i, int j)
           
 int rows()
           
 void setDouble(int i, int j, double x)
           
 
Methods inherited from class jsci.util.array.AbstractDoubleArray2D
contentEquals, contentEquals, contentEquals, contentEqualsOp, contentEqualsOp, get, set, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileDoubleArray2D

public FileDoubleArray2D(int rows,
                         int cols,
                         java.io.File f,
                         int numBuffers,
                         boolean bufferDiag)
                  throws java.io.IOException
Parameters:
numBuffers - number of row buffers
bufferDiag - buffer the diagonal?
Throws:
java.io.IOException

FileDoubleArray2D

public FileDoubleArray2D(int rows,
                         int cols,
                         java.lang.String filename,
                         int numBuffers,
                         boolean bufferDiag)
                  throws java.io.IOException
Throws:
java.io.IOException

FileDoubleArray2D

public FileDoubleArray2D(int rows,
                         int cols)
                  throws java.io.IOException
Throws:
java.io.IOException

FileDoubleArray2D

public FileDoubleArray2D(double[][] array)
                  throws java.io.IOException
Throws:
java.io.IOException
Method Detail

create

public FileDoubleArray2D create(int rows,
                                int cols)

getDouble

public double getDouble(int i,
                        int j)

setDouble

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

getBufferHits

public int getBufferHits()

getBufferMisses

public int getBufferMisses()

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException

rows

public int rows()

columns

public int columns()