[Rd] bug in rbind?

2017-01-16 Thread Krzysztof Banas
I suspect there may be a bug in base::rbind.data.frame Below there is minimal example of the problem: m <- matrix (1:12, 3) dfm <- data.frame (c = 1 : 3, m = I (m)) str (dfm) m.names <- m rownames (m.names) <- letters [1:3] dfm.names <- data.frame (c = 1 : 3, m = I (m.names)) str (dfm.names) rb

[Rd] strptime("1","%m") returns NA

2017-01-16 Thread frederik
Hi R Devel, I wrote some code which depends on 'strptime' being able to parse an incomplete date, like this: > base::strptime("2016","%Y") [1] "2016-01-14 PST" The above works - although it's odd that it gives the month and day for Sys.time(). I might expect it to set them both to zero as the GN

Re: [Rd] accelerating matrix multiply

2017-01-16 Thread Cohn, Robert S
Hi Tomas, Can you share the full code for your benchmark, compiler options, and performance results so that I can try to reproduce them? There are a lot of variables that can affect the results. Private email is fine if it is too much for the mailing list. I am measuring on Knight's Landing (K

Re: [Rd] accelerating matrix multiply

2017-01-16 Thread Tomas Kalibera
Hi Robert, thanks for the report and your suggestions how to make the NaN checks faster. Based on my experiments it seems that the "break" in the loop actually can have positive impact on performance even in the common case when we don't have NaNs. With gcc on linux (corei7), where isnan is