Re: [Rd] Patch: context stack size in gram.y

2006-06-05 Thread Hin-Tak Leung
Hmm, I think you can "flatten" the for-loop with something like this, without modifying R: for(ParamAll in 1:(length01*length02*length03*length*4...)) { idx1 <- as.integer(ParamAll/(length02*length03...)) Param01 <- Param01Set[idx1] idx2 = as.integer((ParamAll - idx1 * length01)/length03*length0

Re: [Rd] Patch: context stack size in gram.y

2006-05-31 Thread Thomas Dreibholz
On Wednesday 31 May 2006 15:26, Prof Brian Ripley wrote: > On Wed, 31 May 2006, Thomas Dreibholz wrote: > > Hi! > > > > Attached to this mail, you find a patch for gram.y setting a #define > > CONTEXT_STACK_SIZE for the context stack size and replacing the following > > constants 50 and 49 by CONTE

Re: [Rd] Patch: context stack size in gram.y

2006-05-31 Thread Prof Brian Ripley
On Wed, 31 May 2006, Thomas Dreibholz wrote: > Hi! > > Attached to this mail, you find a patch for gram.y setting a #define > CONTEXT_STACK_SIZE for the context stack size and replacing the following > constants 50 and 49 by CONTEXT_STACK_SIZE and CONTEXT_STACK_SIZE-1. The new > #define makes sett

[Rd] Patch: context stack size in gram.y

2006-05-31 Thread Thomas Dreibholz
Hi! Attached to this mail, you find a patch for gram.y setting a #define CONTEXT_STACK_SIZE for the context stack size and replacing the following constants 50 and 49 by CONTEXT_STACK_SIZE and CONTEXT_STACK_SIZE-1. The new #define makes setting the stack size much more easy; I also have increas