Class NativeMatrixStorageFactory
java.lang.Object
org.episteme.nativ.mathematics.linearalgebra.matrices.storage.NativeMatrixStorageFactory
- All Implemented Interfaces:
MatrixStorageFactory
@AutoService(MatrixStorageFactory.class)
public class NativeMatrixStorageFactory
extends Object
implements MatrixStorageFactory
Native implementation of MatrixStorageFactory.
Creates
NativeRealDoubleMatrixStorage instances for Real numbers.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<E> MatrixStorage<E> createDense(int rows, int cols, Ring<E> ring) Creates a new dense matrix storage.intReturns the priority of this factory.
-
Constructor Details
-
NativeMatrixStorageFactory
public NativeMatrixStorageFactory()
-
-
Method Details
-
createDense
Description copied from interface:MatrixStorageFactoryCreates a new dense matrix storage.- Specified by:
createDensein interfaceMatrixStorageFactory- Type Parameters:
E- the element type- Parameters:
rows- number of rowscols- number of columnsring- the ring defining the element type and zero- Returns:
- a new MatrixStorage instance
-
getPriority
public int getPriority()Description copied from interface:MatrixStorageFactoryReturns the priority of this factory. Higher values are preferred.- Specified by:
getPriorityin interfaceMatrixStorageFactory- Returns:
- priority
-