Package com.powsybl.math.matrix
Class SparseMatrixFactory
java.lang.Object
com.powsybl.math.matrix.SparseMatrixFactory
- All Implemented Interfaces:
MatrixFactory
Sparse matrix factory.
- Author:
- Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(int rowCount, int columnCount, int estimatedValueCount) Create a matrix with m rows and n column.
-
Constructor Details
-
SparseMatrixFactory
public SparseMatrixFactory() -
SparseMatrixFactory
public SparseMatrixFactory(double rgrowthThreshold)
-
-
Method Details
-
create
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 countestimatedValueCount
- estimated number of values- Returns:
- a matrix with
rowCount
rows andcolumnCount
columns
-