Class NativeRealDoubleMatrix
java.lang.Object
org.episteme.core.mathematics.linearalgebra.matrices.GenericMatrix<Real>
org.episteme.nativ.mathematics.linearalgebra.matrices.NativeRealDoubleMatrix
- All Implemented Interfaces:
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>, NativeSegmentProxy
High-performance Real Double Matrix backed by a persistent native MemorySegment.
Implements
NativeSegmentProxy for zero-copy transfer to FFM-based BLAS backends.-
Field Summary
Fields inherited from class GenericMatrix
provider, ring, storage -
Constructor Summary
ConstructorsConstructorDescriptionNativeRealDoubleMatrix(int rows, int cols, Arena arena, LinearAlgebraProvider<Real> provider) NativeRealDoubleMatrix(NativeRealDoubleMatrixStorage storage, LinearAlgebraProvider<Real> provider) -
Method Summary
Modifier and TypeMethodDescriptionarena()Returns the Arena managing the lifecycle of the segment.copy()static NativeRealDoubleMatrixReturns a human-readable description of this set.segment()Returns the underlying native memory segment.Methods inherited from class GenericMatrix
add, cholesky, cols, contains, determinant, eigen, get, getColumn, getField, getProvider, getRow, getScalarRing, getStorage, getSubMatrix, inverse, lu, multiply, multiply, negate, one, qr, rows, scale, set, 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
isAssociativeMethods inherited from interface NativeSegmentProxy
isAlive
-
Constructor Details
-
NativeRealDoubleMatrix
public NativeRealDoubleMatrix(int rows, int cols, Arena arena, LinearAlgebraProvider<Real> provider) -
NativeRealDoubleMatrix
public NativeRealDoubleMatrix(NativeRealDoubleMatrixStorage storage, LinearAlgebraProvider<Real> provider)
-
-
Method Details
-
copyOf
public static NativeRealDoubleMatrix copyOf(Matrix<Real> other, Arena arena, LinearAlgebraProvider<Real> provider) -
segment
Description copied from interface:NativeSegmentProxyReturns the underlying native memory segment.- Specified by:
segmentin interfaceNativeSegmentProxy
-
arena
Description copied from interface:NativeSegmentProxyReturns the Arena managing the lifecycle of the segment.- Specified by:
arenain interfaceNativeSegmentProxy
-
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
-
copy
-