Package com.powsybl.math.matrix
Interface MatrixFactory
-
- All Known Implementing Classes:
DenseMatrixFactory
,SparseMatrixFactory
public interface MatrixFactory
Interface for matrix factory.- Author:
- Geoffroy Jamgotchian
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Matrix
create(int rowCount, int columnCount, int estimatedNonZeroValueCount)
Create a matrix with m rows and n column.
-
-
-
Method Detail
-
create
Matrix create(int rowCount, int columnCount, int estimatedNonZeroValueCount)
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.- Parameters:
rowCount
- row countcolumnCount
- column countestimatedNonZeroValueCount
- estimation of non zero values- Returns:
- a matrix with
rowCount
rows andcolumnCount
columns
-
-