Class SparseMatrixFactory

java.lang.Object
com.powsybl.math.matrix.SparseMatrixFactory
All Implemented Interfaces:
MatrixFactory

public class SparseMatrixFactory extends Object implements MatrixFactory
Sparse matrix factory.
Author:
Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>
See Also:
  • Constructor Details

    • SparseMatrixFactory

      public SparseMatrixFactory()
    • SparseMatrixFactory

      public SparseMatrixFactory(double rgrowthThreshold)
  • Method Details

    • create

      public SparseMatrix create(int rowCount, int columnCount, int estimatedValueCount)
      Description copied from interface: MatrixFactory
      Create a matrix with m rows and n column. An estimation of the number of non zero values may be provided for internal capacity reservation.
      Specified by:
      create in interface MatrixFactory
      Parameters:
      rowCount - row count
      columnCount - column count
      estimatedValueCount - estimated number of values
      Returns:
      a matrix with rowCount rows and columnCount columns