YALMIP icon indicating copy to clipboard operation
YALMIP copied to clipboard

Make degree a method instead of function to avoid nameclash

Open johanlofberg opened this issue 4 years ago • 3 comments

johanlofberg avatar Apr 07 '20 10:04 johanlofberg

But then problems arise when the argument is a constant...

johanlofberg avatar Apr 15 '20 09:04 johanlofberg

Creating method for doubles is possible: extras/@double/degree.m Feels like an overkill, but I can't think of any other solution

PiotrBalik avatar Aug 25 '21 10:08 PiotrBalik

yes, but I've always tried to avoid adding overloading of doubles. Don't like that as it is such a universal class, and I bet that would lead to nameclash in some other toolbox

johanlofberg avatar Aug 25 '21 10:08 johanlofberg