I have overloaded the operators in order to achieve these relative basic functions in Alglib. I didn't find any other way to do this in Alglib and don't believe it's available looking at the other questions and answers about the topic.
I read that don't like to switch to another library, but I would suggest to take a quick look at Eigen
. For me it was quite easy to set it up as I've already had the libraries as part of the PointCloudLibrary that I have installed. Furthermore the documentation is quite good and I perform the needed operations much faster.
The normal library documentation can be found: (Check section Arithmic Operators)
Eigen Quick Reference Guide
Beside the normal documentation it also has an unsupported section with less documentation but with more algorithms like solvers, FFT, polynomials, fitting:
Eigen Unsupported
I know that for my application I will remove the Alglib stuff and change to Eigen
as it works more intuitive and according to me the documentation is better.