octave-maintainers
[Top][All Lists]
Advanced

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

Re: [RFC] Integrating High-precision arithmetic into Octave Core ?


From: Georgios Ouzounis
Subject: Re: [RFC] Integrating High-precision arithmetic into Octave Core ?
Date: Fri, 21 Mar 2014 19:23:42 +0200

> I did a little bit of research and it seems the best route would be
> sub-classing the built-in type "double".    That way you can call methods of
> the built-in class and other built-in functions directly with objects of the
> subclass.
>
> You'd have a mixture of method implementations.  The basic arithmetic
> operators would be overridden, calling MPFR internally via MEX.
>
> For example, you do not need to re-implement fminsearch, only the functions
> and operators called by fminsearch that operate on your class.
>
> For details, please see:
> - Behavior of Built-In Functions with Subclass Objects
> <http://www.mathworks.com/help/matlab/matlab_oop/subclassing-matlab-built-in-classes.html#brr3cdl-1>
> - Invoking Superclass Methods in Subclass Methods
> <http://www.mathworks.com/help/matlab/matlab_oop/ordinary-methods.html#brdqjju-1>
>
> Not sure how far the Octave classdef implementation is, but I guess it'd be
> a nice incentive to have one more project using it.
>
> -F.

Thank you for your proposal Felipe! It will take a while for me to do my study on your suggestion and come back to the list!

Georgios Ouzounis.


reply via email to

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