beltoforion / muparserx

A C++ Library for Parsing Expressions with Strings, Complex Numbers, Vectors, Matrices and more.
http://beltoforion.de/en/muparserx
BSD 2-Clause "Simplified" License
135 stars 60 forks source link

Extend norm() to support matrix/vector #67

Closed nasailja closed 7 years ago

nasailja commented 8 years ago

Looking at the code norm() seems to be supported only for complex variables but it would be handy also for matrix/vector expressions. For example as provided by octave/matlab/etc: http://octave.sourceforge.net/octave/function/norm.html Looks like mupx equivalent of p would be 0.5 for complex values. Being able to give p as an argument would also be nice.

beltoforion commented 8 years ago

It seems that matlab went a bit crazy with the norm function. This would require more time than just forwarding functionality of the standard library. Maybe later but at the moment chances are slim

beltoforion commented 7 years ago

closing the issue. no change planned