Package com.powsybl.math.matrix
Class AbstractMatrix
java.lang.Object
com.powsybl.math.AbstractMathNative
com.powsybl.math.matrix.AbstractMatrix
- All Implemented Interfaces:
Matrix
- Direct Known Subclasses:
DenseMatrix
,SparseMatrix
Abstract class for matrix that provides an implementation for common methods.
- Author:
- Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.powsybl.math.matrix.Matrix
Matrix.Element, Matrix.ElementHandler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAddition the matrix with another one (this + other).protected void
checkBounds
(int i, int j) Check that rowi
and columnj
are in matrix bounds.copy
(MatrixFactory factory) Copy this matrix using another implementation.abstract int
Get value count.Multiply the matrix by another one.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.powsybl.math.matrix.Matrix
add, add, addAndGetElement, addAndGetIndex, addAtIndex, addQuickAtIndex, addValue, decomposeLU, getColumnCount, getM, getN, getRowCount, iterateNonZeroValue, iterateNonZeroValueOfColumn, print, print, reset, set, setAtIndex, setQuickAtIndex, setValue, times, to, toDense, toSparse, transpose
-
Constructor Details
-
AbstractMatrix
public AbstractMatrix()
-
-
Method Details
-
getValueCount
public abstract int getValueCount()Get value count.- Returns:
- the value count
-
checkBounds
protected void checkBounds(int i, int j) Check that rowi
and columnj
are in matrix bounds.- Parameters:
i
- row indexj
- column index
-
copy
Copy this matrix using another implementation. This method is not allowed to return this. -
add
Description copied from interface:Matrix
Addition the matrix with another one (this + other). The resulting matrix has the same implementation as this matrix. -
times
Description copied from interface:Matrix
Multiply the matrix by another one. The resulting matrix has the same implementation as this matrix.
-