octave-maintainers
[Top][All Lists]
Advanced

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

Re: GSOC 16, Improvements to sqrtm,logm and funm


From: PhilipNienhuis
Subject: Re: GSOC 16, Improvements to sqrtm,logm and funm
Date: Sun, 20 Mar 2016 12:53:34 -0700 (PDT)

Mudit Sharma wrote
> <snip>
> As pointed out that JIT compiler is unavailable for Octave, so funm
> needs to be written in C++.
> <snip>
> * Write funm in C++, rewrite sqrtm in C++ and since scripts are slow
>   rewrite expm and logm in C++ ( scripts supplied earlier in this mail)

PMFJI

A cleverly vectorized .m file shouldn't be much slower than a function file
in C++ but is usually much easier to maintain.  In addition Octave has many
ready-baked linear-algebra functions; please avoid reinventing the wheel but
rather use existing code as much as possible.

Better first write/complete the functions in m-file format, use the profiler
to find the time-consuming parts, then first rewrite those bottlenecks in
C++.

Just my .02 $c

Philip




--
View this message in context: 
http://octave.1599824.n4.nabble.com/Re-GSOC-16-Improvements-to-sqrtm-logm-and-funm-tp4675180p4675683.html
Sent from the Octave - Maintainers mailing list archive at Nabble.com.



reply via email to

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