Class SIMDRealFloatMatrix
java.lang.Object
org.episteme.core.mathematics.linearalgebra.matrices.GenericMatrix<Real>
org.episteme.core.mathematics.linearalgebra.matrices.SIMDRealFloatMatrix
- 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>
SIMD-accelerated Matrix implementation using JDK Vector API for Float (Single) precision.
- Since:
- 1.2
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Field Summary
Fields inherited from class GenericMatrix
provider, ring, storage -
Constructor Summary
ConstructorsConstructorDescriptionSIMDRealFloatMatrix(int rows, int cols) SIMDRealFloatMatrix(int rows, int cols, float[] data) -
Method Summary
Modifier and TypeMethodDescriptionabs()acos()acosh()Returns the sum of this matrix and another.asin()asinh()atan()atanh()cbrt()voidclose()intcols()Returns the number of columns in this matrix.cos()cosh()exp()static SIMDRealFloatMatrixget(int row, int col) Returns the element at the specified row and column.Returns the ring of scalars for this module.Returns the underlying storage of this matrix.log()log10()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).powScalar(float exponent) introws()Returns the number of rows in this matrix.scale(float scalar) voidset(int row, int col, float val) voidsin()sinh()sqrt()Returns the difference of this matrix and another.tan()tanh()trace()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, contains, description, determinant, eigen, getColumn, getField, getProvider, getRow, getSubMatrix, inverse, lu, qr, scale, 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, toTensorMethods inherited from interface Monoid
isAssociative
-
Constructor Details
-
SIMDRealFloatMatrix
public SIMDRealFloatMatrix(int rows, int cols) -
SIMDRealFloatMatrix
public SIMDRealFloatMatrix(int rows, int cols, float[] data)
-
-
Method Details
-
from
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
rows
-
cols
-
get
-
set
public void set(int row, int col, float val) -
set
- Overrides:
setin classGenericMatrix<Real>
-
abs
-
sqrt
-
log
-
exp
-
sin
-
cos
-
tan
-
asin
-
acos
-
atan
-
sinh
-
cosh
-
tanh
-
asinh
-
acosh
-
atanh
-
cbrt
-
log10
-
powScalar
-
scale
-
add
-
multiply
-
transpose
-
subtract
-
multiply
-
negate
-
zero
-
one
Description copied from interface:SemiringReturns the multiplicative identity (one element).Satisfies: 1 × a = a × 1 = a for all elements a.
-
trace
-
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
-