finesse.densematrix.DenseMatrix.add_diagonal_elements

DenseMatrix.add_diagonal_elements(Neqs, index, name)[source]

Adds a submatrix to the matrix along its diagonal. This defines what equations exist in the matrix, the submatrix values cannot be changed after this, they are always 1 Before other submatrices can be added to the matrix the diagonal must be specfied and how many equations it represents.

Parameters

Neqs : Py_ssize_t

Number of equations this submatrix represents

_index : long

Subcolumn index

name : unicode

Name used to indentify this coupling in the matrix for debugging