Class TiledMatrix<E>
java.lang.Object
org.episteme.core.mathematics.linearalgebra.matrices.GenericMatrix<E>
org.episteme.core.mathematics.linearalgebra.matrices.TiledMatrix<E>
- All Implemented Interfaces:
AutoCloseable, Matrix<E>, AbelianGroup<Matrix<E>>, AbelianMonoid<Matrix<E>>, Group<Matrix<E>>, Magma<Matrix<E>>, Monoid<Matrix<E>>, Ring<Matrix<E>>, Semiring<Matrix<E>>, Set<Matrix<E>>, Module<Matrix<E>, E>
A matrix decomposed into smaller tiles (blocks).
This structure is optimized for cache-local computations and distributed processing.
- Since:
- 1.1
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Field Summary
Fields inherited from class GenericMatrix
provider, ring, storage -
Constructor Summary
ConstructorsConstructorDescriptionTiledMatrix(int rows, int cols, int tileSize, Ring<E> ring) Creates an empty TiledMatrix with specified dimensions.TiledMatrix(Matrix<E> original, int tileRows, int tileCols) Creates a TiledMatrix from an existing matrix. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()intcols()Returns the number of columns in this matrix.get(int row, int col) Returns the element at the specified row and column.intintgetSubTiledMatrix(int startTileRow, int endTileRow, int startTileCol, int endTileCol) Returns a sub-tiled matrix representing a portion of this tiled matrix.getTile(int i, int j) intintrows()Returns the number of rows in this matrix.voidvoidvoidupdateTile(int i, int j, Matrix<E> delta) Thread-safe update of a tile (adds delta to current tile).Methods inherited from class GenericMatrix
add, cholesky, contains, description, determinant, eigen, getColumn, getField, getProvider, getRow, getScalarRing, getStorage, getSubMatrix, inverse, lu, multiply, multiply, negate, one, qr, scale, svd, trace, transpose, withProvider, zeroMethods 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
-
TiledMatrix
-
TiledMatrix
-
-
Method Details
-
rows
-
cols
-
get
-
set
- Overrides:
setin classGenericMatrix<E>
-
getTile
-
getNumTileRows
public int getNumTileRows() -
getNumTileCols
public int getNumTileCols() -
getTileSize
public int getTileSize() -
setTile
-
updateTile
-
getSubTiledMatrix
public TiledMatrix<E> getSubTiledMatrix(int startTileRow, int endTileRow, int startTileCol, int endTileCol) Returns a sub-tiled matrix representing a portion of this tiled matrix. Dimensions are in terms of tiles. -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-