jsci.util.array
Class FileDoubleArray2D
java.lang.Object
jsci.util.array.AbstractDoubleArray2D
jsci.util.array.FileDoubleArray2D
- All Implemented Interfaces:
- Array2D<java.lang.Double>, DoubleArray2D
public class FileDoubleArray2D
- extends AbstractDoubleArray2D
Uses an underlying file as storage.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FileDoubleArray2D
public FileDoubleArray2D(int rows,
int cols,
java.io.File f,
int numBuffers,
boolean bufferDiag)
throws java.io.IOException
- Parameters:
numBuffers
- number of row buffersbufferDiag
- 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
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()