Skip to content

Alex/mat44 transpose invert returns#12

Merged
sebsjames merged 8 commits intomainfrom
alex/mat44-transpose-invert-returns
Jul 10, 2025
Merged

Alex/mat44 transpose invert returns#12
sebsjames merged 8 commits intomainfrom
alex/mat44-transpose-invert-returns

Conversation

@blenk13
Copy link
Copy Markdown
Collaborator

@blenk13 blenk13 commented Jul 9, 2025

Previously the behaviour of transpose and inverse was inconsistent. The transpose function in the matrix classes mat22, mat33 and mat44 did a transpose in place, whereas the inverse function returned the inverse of matrix.
Following this PR these matrix classes now have transpose_inplace and inverse_inplace, as well as transpose and inverse functions which return modified matricies, leaving the matrix itself unchanged.

Comment thread sm/mat44
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove " // check this with eigen"

Comment thread sm/mat22
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code comment for mat22<F> transpose() noexcept should be "Return the transpose of this matrix"

@sebsjames sebsjames merged commit fa04fa5 into main Jul 10, 2025
10 checks passed
@sebsjames sebsjames deleted the alex/mat44-transpose-invert-returns branch August 22, 2025 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants