octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Improving sqrtm


From: Keith Keith
Subject: Re: Improving sqrtm
Date: Tue, 16 Feb 2016 09:43:30 -0600

Looks like what you have to do is detect 3 output arguments using the nargout variable.  Then if you have three output arguments do the math then you resize the retval to 3 and assign your outputs to retval.

On Tue, Feb 16, 2016 at 2:10 AM, Mudit Sharma <address@hidden> wrote:
All,
I'm improving sqrtm in Octave and want to align it with
the sqrtm from Matlab which has 3 output arguments,
whereas the existing sqrtm.cc from octave has 2 .

Here's the link for sqrtm from Matlab:
https://github.com/RickOne16/sqrtm/blob/master/sqrtm.m

and this is octave's sqrtm:
https://github.com/RickOne16/sqrtm/blob/master/sqrtm.cc

How do I change the octave's sqrtm code to align it with that
from Matlab which has 3 output arguments?

Bests,
Mudit


reply via email to

[Prev in Thread] Current Thread [Next in Thread]