chsvlib
chsv helper source code

◆ CofactorMe()

derived_type& CofactorMe ( )

Replaces each element within the current matrix with the corresponding cofactor element and returns a reference to the current matrix. .

Returns
A reference to the current matrix holding the result.

For the current matrix \(A_{m\times n} = \left\{a_{i,j}\right\}\) the method performs the following: \(\forall 0 \leq i < m, 0 \leq j < n: a_{i,j} \leftarrow A.Cofactor(i, j)\).

Exceptions
Chusov::Exceptions::InvalidParameterExceptionThe current matrix is not square