Re: [Rd] Hyper-dual numbers in R

2015-03-06 Thread Duncan Murdoch
On 06/03/2015 11:18 AM, Ravi Varadhan wrote: > Hi, > Has anyone in R core thought about providing "hyper-dual numbers" in R? > Hyper-dual (HD) numbers, invented by Jeffrey Fike at Stanford, are useful for > computing exact second-order derivatives (e.g., Hessian). HD numbers are > extensions o

[Rd] Hyper-dual numbers in R

2015-03-06 Thread Ravi Varadhan
Hi, Has anyone in R core thought about providing "hyper-dual numbers" in R? Hyper-dual (HD) numbers, invented by Jeffrey Fike at Stanford, are useful for computing exact second-order derivatives (e.g., Hessian). HD numbers are extensions of complex numbers. They are like "quaternions" and have

Re: [Rd] R with Array Hashes

2015-03-06 Thread Jeffrey Horner
On Fri, Mar 6, 2015 at 9:36 AM, Dirk Eddelbuettel wrote: > > Jeff, > > Nice writeup and promising idea. From the "gimme numbers" department: > > - do you pass the R regression tests? I made sure that the implementation passed 99% of the tests, however there were two that gave differing results

Re: [Rd] R with Array Hashes

2015-03-06 Thread Dirk Eddelbuettel
Jeff, Nice writeup and promising idea. From the "gimme numbers" department: - do you pass the R regression tests? - what sort of speedups do you see on which type of benchmarks? When you asked about benchmark code on Twitter, I shared the somewhat well-known (but no R ...) http://benchmarks

[Rd] R with Array Hashes

2015-03-06 Thread Jeffrey Horner
Hi, I wanted to share with the mailing list members here details about the project I've been working on: https://github.com/jeffreyhorner/R-Array-Hash This is a re-implementation of R's hashed environments, the global variable cache, the global string cache and symbol table with cache-conscious