Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Re: [visad] Complex data type

 Doug,

You may be able to use a Tuple and implement
complex math, by defining a new class that extends
RealTuple with two Real components for real
and imaginary parts, and overrides the binary()
method to define complex math operations.

None of the other VisAD classes will know about
your complex class extending RealTuple, so there
may be some problems.

Good luck,
Bill

  ----- Original Message -----
  From: "Doug Lindholm"
  To: "'visad@xxxxxxxxxxxxxxxx'"
  Subject: [visad] Complex data type
  Date: Mon, 20 Apr 2009 14:04:42 -0600


  I thought this topic came up before but I couldn't find it in the
  archives.

  I gather that VisAD does not have a Complex data type. I could use
  a Tuple with a real and imaginary component, but it would be nice
  if I could do complex (non-real) math with it. Any thoughts?

  Thanks,
  Doug

  _______________________________________________
  visad mailing list
  visad@xxxxxxxxxxxxxxxx
  For list information, to unsubscribe, visit:
  http://www.unidata.ucar.edu/mailing_lists/

-- 
It's News. It's Reviews. It's Interviews. It's Free. What Are You Waiting For?
www.movieline.com

 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690