|
|
|
|
|
by stephencanon
3068 days ago
|
|
There's no mystery here, author is only solving a 5x5 system. LAPACK will have barely finished checking function call parameters by the time a fully specialized and inlined solver is finished. Also, from a cursory inspection, author does no pivoting [edit: worse, it just uses Cramer's rule, which is insane], so their solver will be much less numerically robust (but this is admittedly less of a problem for the 5x5 case). The performance is completely expected--in fact, I would expect an optimized 5x5 solver to be faster than this. |
|