Class DenseMatrix<E>

java.lang.Object
org.episteme.core.mathematics.linearalgebra.matrices.GenericMatrix<E>
org.episteme.core.mathematics.linearalgebra.matrices.DenseMatrix<E>
All Implemented Interfaces:
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>

public class DenseMatrix<E> extends GenericMatrix<E>
A dense matrix implementation. Wrapper around GenericMatrix that enforces DenseMatrixStorage.
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Constructor Details

    • DenseMatrix

      public DenseMatrix(E[][] data, Ring<E> ring)
      Creates a DenseMatrix with automatic storage optimization.
    • DenseMatrix

      public DenseMatrix(List<List<E>> rows, Ring<E> ring)
      Creates a DenseMatrix with automatic storage optimization.
    • DenseMatrix

      public DenseMatrix(E[] flatData, int rows, int cols, LinearAlgebraProvider<E> provider, Ring<E> ring)
    • DenseMatrix

      public DenseMatrix(E[] flatData, int rows, int cols, Ring<E> ring)
    • DenseMatrix

      public DenseMatrix(MatrixStorage<E> storage, LinearAlgebraProvider<E> provider, Ring<E> ring)
    • DenseMatrix

      public DenseMatrix(MatrixStorage<E> storage, Ring<E> ring)
  • Method Details

    • of

      public static <E> Matrix<E> of(E[][] data, Ring<E> ring)
      Creates a DenseMatrix with automatic storage optimization.
    • of

      public static <E> Matrix<E> of(List<List<E>> rows, Ring<E> ring)
      Creates a DenseMatrix with automatic storage optimization.
    • getRawData

      public Object[] getRawData()
    • toDoubleArray

      public double[] toDoubleArray()
    • toString

      public String toString()
      Overrides:
      toString in class Object