[Rd] Intel Fortran compiler returns a -1 TRUE value

Barry Rowlingson b.rowlingson at lancaster.ac.uk
Fri Oct 3 18:11:25 CEST 2014


On Thu, Oct 2, 2014 at 4:25 PM, Ei-ji Nakama <nakama at ki.rim.or.jp> wrote:

> Hello
>
> > The value generated by Fortran's .TRUE. evaluates as "truthy" -- as in
> > all(z[[1]]) -- but is neither equal to nor identical to TRUE. Its numeric
> > conversion to -1 is most unusual, every other system I've tried converts
> to
> > +1.
>
> Please read the -fpscomp logicals option of ifort.
>

 Wow that's an interesting read, and the line

"Intel recommends that you avoid coding practices that
              depend on the internal representation of LOGICAL values"

says it all with regard to R and Fortran LOGICALS, I think!

Barry

	[[alternative HTML version deleted]]



More information about the R-devel mailing list