[SciPy-dev] L0 norm
Mon Oct 26 12:07:50 CDT 2009
SciPy.linalg.basic.norm (version 0.7.0) raises a division-by-zero error when
an ord value of zero is used. Yet, the L0 norm is commonly defined as the
number of non-zero elements in a vector (see wikipedia link below). Has
there been any discussion of adding an if statement to
scipy.linalg.basic.norm to handle this case? Or, is this the behavior in a
future version of scipy? If this functionality hasn't yet been added, would
anyone object to a ticket being created requesting this feature?
Research Scientist, ITA Software
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Scipy-dev