Basis.scale_penalty()

Basis.scale_penalty()#

Basis.scale_penalty()[source]#

Scale the penalty matrix by its infinite norm.

The penalty matrix is divided by its infinity norm (max absolute row sum) so that its values are numerically well-conditioned for downstream use. The updated penalty replaces the previous one.

Return type:

Self

Returns:

The modified basis instance (self).