m-tosch / mu

A small, simple c++ math library
MIT License
1 stars 0 forks source link

transpose functions for Matrix #91

Closed m-tosch closed 3 years ago

m-tosch commented 3 years ago

transpose() which transposes the matrix object itself transposed() which returns a new, transposed matrix object would be consistent with other existing function names... but... transposing the object itself would probably require some kind of bool variable inside the class that indicates if transpose() has been called on the matrix, since switching dimensions N and M for the statically allocated Matrix object is not possible. An option would be to break consistency, and make transpose() return a new, transposed Matrix object.

m-tosch commented 3 years ago

indeed implemented a transpose() funtion that creates and returns a new, transposed matrix object