Class MMapMatrix
java.lang.Object
org.episteme.core.mathematics.linearalgebra.matrices.GenericMatrix<Real>
org.episteme.core.mathematics.linearalgebra.matrices.MMapMatrix
- All Implemented Interfaces:
AutoCloseable, Matrix<Real>, AbelianGroup<Matrix<Real>>, AbelianMonoid<Matrix<Real>>, Group<Matrix<Real>>, Magma<Matrix<Real>>, Monoid<Matrix<Real>>, Ring<Matrix<Real>>, Semiring<Matrix<Real>>, Set<Matrix<Real>>, Module<Matrix<Real>, Real>
Memory-Mapped Matrix implementation for Out-of-Core processing.
Allowed for handling matrices larger than available RAM by mapping file segments into virtual memory.
- Since:
- 1.2
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Field Summary
Fields inherited from class GenericMatrix
provider, ring, storage -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the sum of this matrix and another.voidclose()intcols()Returns the number of columns in this matrix.booleanTests whether this set contains the specified element.copy()Returns a human-readable description of this set.Returns the determinant of this matrix.voidflush()get(int i, int j) Returns the element at the specified row and column.getColumn(int col) Returns the column at the specified index as a vector.getRow(int row) Returns the row at the specified index as a vector.Returns the ring of scalars for this module.Returns the underlying storage of this matrix.getSubMatrix(int rs, int re, int cs, int ce) Returns a submatrix of this matrix.inverse()Returns the multiplicative inverse of this matrix.Returns the product of this matrix and another.Multiplies this matrix by a vector.negate()Returns the negation of this matrix (-this).one()Returns the multiplicative identity (one element).introws()Returns the number of rows in this matrix.Scalar multiplication (r × m).voidtrace()Returns the trace of this matrix (sum of diagonal elements).Returns the transpose of this matrix.zero()Returns the zero matrix of the same dimensions.Methods inherited from class GenericMatrix
cholesky, eigen, getField, getProvider, lu, qr, svd, withProviderMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AbelianGroup
negate, subtractMethods inherited from interface Matrix
add, identity, inverse, isCommutative, isEmpty, isMultiplicationCommutative, map, multiply, operate, scale, subtract, toTensorMethods inherited from interface Monoid
isAssociative
-
Constructor Details
-
MMapMatrix
- Throws:
IOException
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
rows
-
cols
-
get
-
set
- Overrides:
setin classGenericMatrix<Real>
-
flush
public void flush() -
add
-
multiply
-
transpose
-
trace
-
getSubMatrix
Description copied from interface:MatrixReturns a submatrix of this matrix.- Specified by:
getSubMatrixin interfaceMatrix<Real>- Overrides:
getSubMatrixin classGenericMatrix<Real>
-
getRow
-
getColumn
-
determinant
Description copied from interface:MatrixReturns the determinant of this matrix.- Specified by:
determinantin interfaceMatrix<Real>- Overrides:
determinantin classGenericMatrix<Real>
-
inverse
-
multiply
-
negate
-
zero
-
one
Description copied from interface:SemiringReturns the multiplicative identity (one element).Satisfies: 1 × a = a × 1 = a for all elements a.
-
getStorage
Description copied from interface:MatrixReturns the underlying storage of this matrix.- Specified by:
getStoragein interfaceMatrix<Real>- Overrides:
getStoragein classGenericMatrix<Real>- Returns:
- the matrix storage
-
getScalarRing
Description copied from interface:ModuleReturns the ring of scalars for this module.- Specified by:
getScalarRingin interfaceMatrix<Real>- Specified by:
getScalarRingin interfaceModule<Matrix<Real>, Real>- Overrides:
getScalarRingin classGenericMatrix<Real>- Returns:
- the scalar ring
-
scale
Description copied from interface:ModuleScalar multiplication (r × m). -
copy
-
contains
Description copied from interface:SetTests whether this set contains the specified element.This is the fundamental operation of a set - membership testing.
-
description
Description copied from interface:SetReturns a human-readable description of this set.Examples:
- "â„ (Real Numbers)"
- "ℤ/12ℤ (Integers modulo 12)"
- "{1, 2, 3, 4, 5}"
- Specified by:
descriptionin interfaceSet<Matrix<Real>>- Overrides:
descriptionin classGenericMatrix<Real>- Returns:
- a description of this set
-