JSci.maths.matrices
Class DoubleFileSquareMatrix

java.lang.Object
  extended by JSci.maths.matrices.Matrix
      extended by JSci.maths.matrices.AbstractDoubleMatrix
          extended by JSci.maths.matrices.AbstractDoubleSquareMatrix
              extended by JSci.maths.matrices.DoubleFileSquareMatrix
All Implemented Interfaces:
java.io.Serializable, Algebra.Member, Module.Member, VectorSpace.Member, Ring.Member, AbelianGroup.Member, SquareMatrix, Member

public class DoubleFileSquareMatrix
extends AbstractDoubleSquareMatrix

Uses an underlying file as storage.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class JSci.maths.matrices.AbstractDoubleSquareMatrix
luCache
 
Fields inherited from class JSci.maths.matrices.Matrix
numCols, numRows
 
Constructor Summary
DoubleFileSquareMatrix(double[][] array)
           
DoubleFileSquareMatrix(int size)
           
DoubleFileSquareMatrix(int size, java.io.File f, int numBuffers, boolean bufferDiag)
           
DoubleFileSquareMatrix(int size, java.lang.String filename, int numBuffers, boolean bufferDiag)
           
 
Method Summary
 void close()
           
 double getElement(int i, int j)
          Returns an element of the matrix.
 void setElement(int i, int j, double x)
          Sets the value of an element of the matrix.
 
Methods inherited from class JSci.maths.matrices.AbstractDoubleSquareMatrix
add, add, choleskyDecompose, det, directSum, inverse, isSymmetric, isUnitary, luDecompose_cache, luDecompose, luDecompose, mapElements, multiply, negate, operatorNorm, polarDecompose, qrDecompose, scalarDivide, scalarMultiply, scalarProduct, scalarProduct, singularValueDecompose, subtract, subtract, tensor, toComplexMatrix, toIntegerMatrix, trace, transpose
 
Methods inherited from class JSci.maths.matrices.AbstractDoubleMatrix
add, directSum, equals, equals, equals, frobeniusNorm, getSet, hashCode, infNorm, multiply, multiply, multiply, scalarDivide, scalarMultiply, subtract, tensor, toString
 
Methods inherited from class JSci.maths.matrices.Matrix
columns, getInvalidElementMsg, rows
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DoubleFileSquareMatrix

public DoubleFileSquareMatrix(int size,
                              java.io.File f,
                              int numBuffers,
                              boolean bufferDiag)
                       throws java.io.IOException
Parameters:
numBuffers - number of row buffers
Throws:
java.io.IOException

DoubleFileSquareMatrix

public DoubleFileSquareMatrix(int size,
                              java.lang.String filename,
                              int numBuffers,
                              boolean bufferDiag)
                       throws java.io.IOException
Throws:
java.io.IOException

DoubleFileSquareMatrix

public DoubleFileSquareMatrix(int size)
                       throws java.io.IOException
Throws:
java.io.IOException

DoubleFileSquareMatrix

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

getElement

public double getElement(int i,
                         int j)
Description copied from class: AbstractDoubleMatrix
Returns an element of the matrix.

Specified by:
getElement in class AbstractDoubleMatrix
Parameters:
i - row index of the element
j - column index of the element

setElement

public void setElement(int i,
                       int j,
                       double x)
Description copied from class: AbstractDoubleMatrix
Sets the value of an element of the matrix. Should only be used to initialise this matrix.

Specified by:
setElement in class AbstractDoubleMatrix
Parameters:
i - row index of the element
j - column index of the element
x - a number

close

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