[Rd] Intel Fortran compiler returns a -1 TRUE value
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:
> > The value generated by Fortran's .TRUE. evaluates as "truthy" -- as in
> > all(z[]) -- but is neither equal to nor identical to TRUE. Its numeric
> > conversion to -1 is most unusual, every other system I've tried converts
> > +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!
[[alternative HTML version deleted]]
More information about the R-devel