Re: Help needed for a sorting code in the literature
From: Mok-Kong Shen (mok-kong.shen_at_t-online.de)
Date: 12/31/04
- Next message: crazyfly: "Re: crypt question"
- Previous message: Jan Panteltje: "Re: crypt question"
- In reply to: Mok-Kong Shen: "Re: Help needed for a sorting code in the literature"
- Next in thread: Bob Harris: "Re: Help needed for a sorting code in the literature"
- Reply: Bob Harris: "Re: Help needed for a sorting code in the literature"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 31 Dec 2004 14:40:03 +0100
Mok-Kong Shen wrote:
>
[snip]
> Sorry for a accidental duplicted post and for not having
> noticed the fact that my adaptation was from the C++ book,
> while the above URL is for the C book (of the same authors
> and that has apparently combined the two functions in the
> C++ book together) that I don't have. I am including below
> for comparison with my code the stuff in the C++ book
> verbatim (excepting the comments).
[snip]
In attempting just now to copy from the URL given by Bob Harris
to test whether the C code of the same authors works differently
than their C++ code, I discovered to my disappointment that that
code is for a[1..n]. So it doesn't serve my purpose of working
with a[0..n-1]. (It seems a bit odd that the code was for a[1..n]
instead in the context of C programming.)
BTW, in my reproduction (in my previous post) of the C++ code
from the book of Press et al., I had a typo. The line
void NR::hpsort(VEC_IO_DP &ra)
should read
void NR::hpsort(Vec_IO_DP &ra)
M. K. Shen
- Next message: crazyfly: "Re: crypt question"
- Previous message: Jan Panteltje: "Re: crypt question"
- In reply to: Mok-Kong Shen: "Re: Help needed for a sorting code in the literature"
- Next in thread: Bob Harris: "Re: Help needed for a sorting code in the literature"
- Reply: Bob Harris: "Re: Help needed for a sorting code in the literature"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|