tomstewart89 / BasicLinearAlgebra

A library for using matrices and linear algebra on Arduino
MIT License
187 stars 38 forks source link

Transpose function #14

Closed juanjqo closed 6 years ago

juanjqo commented 6 years ago

Dear Tom,

I do not find the transpose function. Can you include it in the library?

Thanks,

Juan

tomstewart89 commented 6 years ago

Hey Juan, The transpose function is handled by the operator ~. So to take the transpose of a matrix you'd write:

Matrix<4,2> A;
Matrix<2,4> B;
A = ~B;
juanjqo commented 6 years ago

Great! Thank you Tom!