Package com.powsybl.math.matrix
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
- See Also:
SparseMatrix
-
-
Constructor Summary
Constructors Constructor Description SparseMatrixFactory()
SparseMatrixFactory(double rgrowthThreshold)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SparseMatrix
create(int rowCount, int columnCount, int estimatedNonZeroValueCount)
Create a matrix with m rows and n column.
-
-
-
Method Detail
-
create
public 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 interfaceMatrixFactory
- Parameters:
rowCount
- row countcolumnCount
- column countestimatedNonZeroValueCount
- estimation of non zero values- Returns:
- a matrix with
rowCount
rows andcolumnCount
columns
-
-