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 Details

    • NativeMatrixStorageFactory

      public NativeMatrixStorageFactory()
  • Method Details

    • createDense

      public <E> MatrixStorage<E> createDense(int rows, int cols, Ring<E> ring)
      Description copied from interface: MatrixStorageFactory
      Creates a new dense matrix storage.
      Specified by:
      createDense in interface MatrixStorageFactory
      Type Parameters:
      E - the element type
      Parameters:
      rows - number of rows
      cols - number of columns
      ring - the ring defining the element type and zero
      Returns:
      a new MatrixStorage instance
    • getPriority

      public int getPriority()
      Description copied from interface: MatrixStorageFactory
      Returns the priority of this factory. Higher values are preferred.
      Specified by:
      getPriority in interface MatrixStorageFactory
      Returns:
      priority