[SciPy-dev] L0 norm
Jason Rennie
jrennie at gmail.com
Mon Oct 26 13:07:50 EDT 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?
http://en.wikipedia.org/wiki/L0_norm#Zero_norm
Cheers,
Jason
--
Jason Rennie
Research Scientist, ITA Software
617-714-2645
http://www.itasoftware.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20091026/bf74d469/attachment.html>
More information about the SciPy-Dev
mailing list