Class SparseMatrixFactory

  • All Implemented Interfaces:
    MatrixFactory

    public class SparseMatrixFactory
    extends Object
    implements MatrixFactory
    Sparse matrix factory.
    Author:
    Geoffroy Jamgotchian
    See Also:
    SparseMatrix
    • Constructor Detail

      • SparseMatrixFactory

        public SparseMatrixFactory()
    • Method Detail

      • create

        public com.powsybl.math.matrix.SparseMatrix create​(int rowCount,
                                                           int columnCount,
                                                           int estimatedNonZeroValueCount)
        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
        estimatedNonZeroValueCount - estimation of non zero values
        Returns:
        a matrix with rowCount rows and columnCount columns