tomstewart89 / BasicLinearAlgebra

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

Elementwise operations with swapped order #77

Closed insalt-glitch closed 3 months ago

insalt-glitch commented 3 months ago

If you want this feature, this PR adds operators for elementwise operations with scalar first arguments. This means if you have a matrix A then this pull request adds the ability to write 3 + A, 3 - A, 3 * A, and 3 / A. I used this project recently and found this quite useful. I also added the appropriate tests for the feature