[Rd] eurodist example dataset is malformed

2009-08-12 Thread Justin Donaldson
The eurodist dataset (my favorite for mds) is malformed. Instead of a standard distance matrix, it's a data frame. The rownames have gotten 'bumped' to a new anonymous dimension "X". It's possible to fix the data, but it messes up a lot of example code out there. X Athens Barcelona B

Re: [Rd] Bug in nlm, found using sem; failure in several flavors (PR#13883)

2009-08-12 Thread Peter Dalgaard
William Dunlap wrote: Running his example under valgrind (a memory misuse checker on Linux) does show it using memory it should not be using in the optimization C code around where it is copying the gradient vector. The ==10916== Invalid read of size 1 ==10916==at 0x400686D: memcpy (mc_r

Re: [Rd] identical(0, -0)

2009-08-12 Thread Petr Savicky
On Wed, Aug 12, 2009 at 04:02:28PM +0200, Martin Maechler wrote: > > "PS" == Petr Savicky > > on Wed, 12 Aug 2009 13:50:46 +0200 writes: > > PS> Let me add the following to the discussion of identical(0, -0). > PS> I would like to suggest to replace the paragraph > > PS>

Re: [Rd] Problem with function in fortran 95

2009-08-12 Thread Göran Broström
Fabio Mathias Corrêa skrev: I am writing a function in fortran 95, but the intrinsic function MATMUL is not working properly. Here's an example. SUBROUTINE mymult(x,y,res,m,n) IMPLICIT NONE INTEGER :: m,n REAL :: x, y, res Is REAL in Fortran 95 the same as "dou

Re: [Rd] identical(0, -0)

2009-08-12 Thread Martin Maechler
> "PS" == Petr Savicky > on Wed, 12 Aug 2009 13:50:46 +0200 writes: PS> Let me add the following to the discussion of identical(0, -0). PS> I would like to suggest to replace the paragraph PS> 'identical' sees 'NaN' as different from 'NA_real_', but all PS> 'NaN's are

Re: [Rd] readBin() arg check has unnecessary overhead (patch included)

2009-08-12 Thread Martin Maechler
> "JC" == Jon Clayden > on Wed, 12 Aug 2009 14:57:10 +0100 writes: >>    > Dear all, >>    > The version of readBin() in R-devel includes a use of match(), through >>    > `%in%`, which can affect its performance significantly. By using >>    > primitives instead of t

Re: [Rd] readBin() arg check has unnecessary overhead (patch included)

2009-08-12 Thread Jon Clayden
>    > Dear all, >    > The version of readBin() in R-devel includes a use of match(), through >    > `%in%`, which can affect its performance significantly. By using >    > primitives instead of the rather expensive call to match(), I reduce >    > the time spent inside readBin() by more than 30%

Re: [Rd] readBin() arg check has unnecessary overhead (patch included)

2009-08-12 Thread Martin Maechler
> Jon Clayden > on Tue, 11 Aug 2009 17:51:46 +0100 writes: > Dear all, > The version of readBin() in R-devel includes a use of match(), through > `%in%`, which can affect its performance significantly. By using > primitives instead of the rather expensive call to match

Re: [Rd] identical(0, -0)

2009-08-12 Thread Petr Savicky
Let me add the following to the discussion of identical(0, -0). I would like to suggest to replace the paragraph 'identical' sees 'NaN' as different from 'NA_real_', but all 'NaN's are equal (and all 'NA' of the same type are equal). in ?identical by the following text, which is a correction

[Rd] Problem with function in fortran 95

2009-08-12 Thread Fabio Mathias Corrêa
I am writing a function in fortran 95, but the intrinsic function MATMUL is not working properly. Here's an example. SUBROUTINE mymult(x,y,res,m,n) IMPLICIT NONE INTEGER :: m,n REAL :: x, y, res DIMENSION :: x(m,n), y(n,m), res(m,m) res = MATMUL(x,y