3 ms·
Just using templates with floating point numerical computation is a sure red flag. One has to adjust the code to the limits imposed by each internal representat
by acqq 7y ago
Just using templates with floating point numerical computation is a sure red flag. One has to adjust the code to the limits imposed by each internal representation.
Floating point code is not to be written without figuring out much more than copying some math formula from somewhere.
In this case the article maybe attempts to demonstrate that fact, but the discussion of what's actually happening is surely lacking.
- mkl 7y ago> Just using templates with floating point numerical computation is a sure red flag. What do you think of Eigen, then? It seems to do pretty well, and is very template heavy.
- acqq 7y agoI’m not claiming it’s impossible in general, just that it’s much more probable that the limits have to be defined explicitly for different sizes. Template speziasiations etc.