chsvlib
chsv helper source code

◆ Rank()

size_type Rank ( ) const

Calculates a rank of the current matrix.

Returns
A rank of the current matrix.

Generally, in order to calculate the rank of the matrix the method calculates a row echelon form of it, counts a number of non-zero elements (the ones not equal to value_type(Chusov::Math::additive_identity)) appertaining to the main diagonal of the form, and returns the resulting counter value.