Re: [Rd] From .Fortran to .Call?

2021-02-09 Thread Avraham Adler
I had some time, so I updated a toy package I have for explaining R and Fortran use to use both the .Call and the .Fortran interfaces [1]. I think the actual Fortran code is as close to identical as I can reasonably make it. On my computer, the .Call interface (_f) is around 4 times as fast as the

Re: [Rd] surprised matrix (1:256, 8, 8) doesn't cause error/warning

2021-02-09 Thread Wolfgang Huber
Hi Martin Thank you! I very much understand your reservations and know it was a bit cheeky to poke. I agree that in those cases where my (naive) patch results in two warnings, keeping only the new one would better. No strong opinion about the case where either ncol or nrow is 0. Maybe a compro

Re: [Rd] surprised matrix (1:256, 8, 8) doesn't cause error/warning

2021-02-09 Thread Martin Maechler
> Wolfgang Huber > on Sat, 6 Feb 2021 19:49:11 +0100 writes: > FWIW, I paste below a possible change to the warnings generating part of the do_matrix function in R/src/main/array.c that adds the kind of warning that Abby is asking for, and that IMHO would more often help users f