search for: swap_tail

Displaying 2 results from an estimated 2 matches for "swap_tail".

Did you mean: swap_fail
2008 Jul 14
0
swap_tail macro in pnorm.c
Hello, Looking over the swap_tail macro in pnorm.c, the comment inside the code indicates it is to swap the values of '*cum' and '*ccum'. According to the code below that is taken from the source file, the swap functionality is dependent on what values are provided for 'x' and 'lower'. #define swap...
2003 Jul 24
0
Re: I am puzzled about something in pnorm in R (PR#3545)
...rrect. the routine only guarantees that one of cum or ccum has a valid return value depending on i_tail (the other might as well be garbage, but that isn't what's returned). j On Wed, 9 Jul 2003 Henrik.Seidel@schering.de wrote: > Hello, > > I am a bit puzzled about the "swap_tail" macro in pnorm.c of the R sources. > I cite: > > #define swap_tail \ > if (x > 0.) {/* swap ccum <--> cum */ \ > temp = *cum; if(lower) *cum = *ccum; *ccum = temp; \ > } > > It appears to me that ccum...