comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: IDL 8 Operator Overloading and Error Tracking
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: IDL 8 Operator Overloading and Error Tracking [message #74158] Sun, 19 December 2010 21:11
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 12/18/10 9:04 PM, mankoff wrote:
> I haven't used IDL 8 but am wondering if the operator overloading
> would support automatic tracking via hidden variables. Could a class
> (is that the right term?) be written so the following code is
> supported?
>
> x = randomu(seed, 10 )
> y = randomu(seed, 10 )
> z = x + y
> plot, z
>
> ;; and then, due to operator overloading:
> plot, z.err
> ;; or
> print, !z.err
> ;; or
> print, z_err
>
> Where errors are initially tracked as per a standard (or customizable)
> function for +-/*^e and log() operators, and supports extensions or
> hooks to add support for additional functions (system, and user) such
> as "z = smooth(x,3)" and "my_pro, x^2, z"
>
> This would be a nice feature.

This would be fairly easy for the overloaded operators such as +-/*^.
Operations, like system routines exp, alog10, etc., would require using
a wrapper that would call the underlying routine and then also handle
the error computation.

Mike
--
www.michaelgalloy.com
Research Mathematician
Tech-X Corporation
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL 8 Operator Overloading and Error Tracking
Next Topic: Hodograph plots of wind speed and direction

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:42:51 PDT 2025

Total time taken to generate the page: 0.00484 seconds