vectorclass / version2

Vector class library, latest version
Apache License 2.0
1.3k stars 148 forks source link

Matrix class #50

Closed rtlprmft closed 2 years ago

rtlprmft commented 3 years ago

A nice extension would be a matrix class. I have started an implementation that is attached. That would extend the use of the vector classes a bit more to mathematical calculation. Although in the attached files are proposals for cross-product, scalar-product, length, and norm. matrix.txt If there is interest, I am willing to help with the implentation.

AgnerF commented 3 years ago

Thanks for your suggestion. I have not made a matrix class yet because of the many complications. The code should preferably be a template to allow different dimensions. Multiply and transpose functions should use permutation instructions for optimal performance.

mu578 commented 3 years ago
AgnerF commented 2 years ago

I have made a matrix class now: https://github.com/vectorclass/add-on/tree/master/containers