[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Synchronizing complex behaviour in commons-math
From: |
Mike Miller |
Subject: |
Re: Synchronizing complex behaviour in commons-math |
Date: |
Mon, 9 May 2016 08:40:10 -0700 |
User-agent: |
Mutt/1.6.0 (2016-04-01) |
On Mon, May 09, 2016 at 05:55:03 -0400, Ericbarnhill wrote:
> I would like to resolve an old Apache commons-math JIRA ticket
> (https://issues.apache.org/jira/browse/MATH-667) regarding the
> behavior of Complex objects in commons-math. In particular I think it
> would be nice to resolve it by synchronizing Complex[] behavior to
> Octave complex numbers (with an eye toward creating a bridge between
> them later). A couple of initial questions:
>
> -- does Octave follow the C99 standard or some other?
Octave Complex types are exactly std::complex<T>. If you are compiling
with a C++11-conforming compiler, then they are binary compatible with
C99 _Complex types, but I don't think any API compatibility is provided.
> -- is all the relevant behavior contained in
> libinterp/octave-value/ov-complex.cc ?
I don't know what all the relevant behavior is. That file defines some
operations on Octave complex types.
--
mike