3 ms·
I think something may have been lost when you typed your code. y is a pointer to double, so can't accept two array subscripts (if it were "double * * y" it cou
by nitrogen 15y ago
I think something may have been lost when you typed your code. y is a pointer to double, so can't accept two array subscripts (if it were "double * * y" it could, or you could keep it as a one-dimensional array and use something like y[(i - 2) * 20000 + j + 1]), and i and j don't appear to be incremented anywhere.
- yummyfajitas 15y agoThanks, fixed the "double * * y". The i and j not being incremented is actually an error in the original blog post - I'll leave it here for consistency.
- nitrogen 15y agoThe i and j not being incremented is actually an error in the original blog post - I'll leave it here for consistency. Ah. In that case, I wonder how the author managed to get an infinite loop to complete in 0.8 seconds ;).