And that's appreciated! Would you suggest using a 1-D only? If so, what exactly are the benefits? I guess you wouldn't have 2 redirections as for the 2-D, but other than that, I dont know of any...
Type: Posts; User: bennywhere
And that's appreciated! Would you suggest using a 1-D only? If so, what exactly are the benefits? I guess you wouldn't have 2 redirections as for the 2-D, but other than that, I dont know of any...
Thanks a lot for the feedback! I agree, it does make the impression, doesn't it...
Would you say that provides any significant optimization? In the meanwhile I have parallelized this code with pthreads. So, with my mirroring (yes, it is indeed mirrored ;-) ), I can cut execution...
MK27: Of course it should have read int *someptr = (int *)alloc1D(1);
is that still wrong? I mean all that malloc really does is allocate memory for 1 float (in the alloc1D()), and return a pointer...
quzah: I agree, it does not say that the result is mirrored... but usually problems don't scream at you where they leave room for potential optimization.
Anyway, could you elaborate on the single...
Thanks a lot for all your suggestions.
As for the commenting:
I usually tend to comment sparingly, and was told by a friend to comment more... So, I guess I just gotta find a good middle grounds....
Hey there, thanks for the feedback!
Yeah, I agree, I will fix the indentation.
As for the mirroring, the problem doesn't say anything about it, but if you analyze the equation, you will see...
Guys,
I'm pretty new at C programming, nevertheless I am currently interviewing for an embedded sw position. As part of the interview I was given a coding exercise in C.
I would appreciate if you...