Suggestion: better runtime runtime error information
Issue #304
new
For those developing applications, it would be quite helpful for debugging if instead of “Vector sizes do not match” or “Matrix sizes do not match”, they threw errors in fashion comparable to “Vector sizes do not match: (“ + std::to_string(lhs.size()) + “, “ + std::to_string(rhs.size()) + “)”.
This would be a relatively simple modification, but it would improve the ergonomics of working with the library.
Hi Daniel!
I agree that there is potential for improvement and I apologize for not having done a better job in the past. I cannot promise though that error messages will be dynamically assembled, since this would have an impact on code size, which could affect inlining and thus performance. Let’s see what can be done, but I agree with you about the general idea. Thanks a lot for the suggestion,
Best regards,
Klaus!