JSci.maths.matrices
Class DoubleFileSquareMatrix
java.lang.Object
JSci.maths.matrices.Matrix
JSci.maths.matrices.AbstractDoubleMatrix
JSci.maths.matrices.AbstractDoubleSquareMatrix
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
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 java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
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
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 elementj
- 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 elementj
- column index of the elementx
- a number
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException