That's a fair enough solution, although probably more trouble than you needed to go to here.
Printable View
That's a fair enough solution, although probably more trouble than you needed to go to here.
But the actual calculation of sin() and cos() is not done at runtime. That was the whole point of the templates. I still think you are not aware that the code I showed you is not done at runtime at all. What I've shown you is something called "template metaprogramming", and there are whole books and websites that talk about the use of templates at compile time to do computations.
Your solution is no different than the one proposed by superbonzo and myself.Quote:
My solution: I wrote a VB.Net program that would generate a large header (.h) file initiallizing the entire arrays each with 1024 douoble values.
Regards,
Paul McKenzie