Skip to main content
Gilles's user avatar
Gilles's user avatar
Gilles's user avatar
Gilles
  • Member for 9 years, 3 months
  • Last seen more than a month ago
awarded
awarded
awarded
awarded
comment
Neural Networks in C
Normally, yes, you allocate the pointer into the function and return it. However, since it becomes the caller's responsibility to free it, you have to clearly document that.
revised
Neural Networks in C
Fixing a missunderstanding of mine
Loading…
comment
Neural Networks in C
Ok, I re-read the code and indeed, it works as you dereference your pointer from the calling side. But then, just return your structures by value, not reference. I'll fix my answer...
comment
Neural Networks in C
No. It only prevents multiple inclusion into a single compilation unit, not across different ones.
answered
Loading…
awarded
awarded
answered
Loading…
revised
Implementation of AES using CUDA
Code formatting (removal of tabs) and syntax highlighting (too bad there's no CUDA prettyfier)
Loading…
suggested
Approve
awarded
Loading…
awarded
comment
Precision sum of doubles
If you're interested in higher precision summations, take a look at Kahan summation algorithm
awarded
awarded