octave-maintainers
[Top][All Lists]
Advanced

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

Re: Complex mappers for real values


From: Mike Miller
Subject: Re: Complex mappers for real values
Date: Thu, 22 Jun 2017 11:01:19 -0700
User-agent: NeoMutt/20170306 (1.8.0)

On Thu, Jun 22, 2017 at 12:47:49 -0500, Dmitri A. Sergatskov wrote:
> using sample code with
> gcc-4.8.5/gcc-7.1.1/clang-4.0.0 (with either libc++ or libstdc++) all give
> the same (correct) answer.

Hm? They give different answers:

> gcc-4.8.5 returns
> g++ -std=c++11 t1.cc
> d
> 
> (gcc 7.1.1)  g++ t1.cc
> ./a.out
> St7complexIdE

So std::conj has been fixed in gcc 7.

With gcc 6, it still returns a double.

Octave wants conj to return a double, so it looks like it should
continue to use the octave::math::conj adapter.

-- 
mike



reply via email to

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