pyva.data.matrixClasses.linearIndex
- pyva.data.matrixClasses.linearIndex(N, irow, icol, btriu=True)
Provides the linear index of triangular matrices
- Parameters:
N (int) – Number of columns.
irow (int) – row index.
icol (int) – column .
btriu (bool, optional) – switch for upper triangular index. The default is True.
- Raises:
IndexError – Wenn btriu = False the lower triangle is used, which is only possible when the matrix is quadratic.
- Returns:
linear index in upper triangula matrix.
- Return type:
int