Skip to content

Fix/add/test Mat bindings#620

Merged
fredroy merged 1 commit into
sofa-framework:masterfrom
alxbilger:bindingsmat
Jun 19, 2026
Merged

Fix/add/test Mat bindings#620
fredroy merged 1 commit into
sofa-framework:masterfrom
alxbilger:bindingsmat

Conversation

@alxbilger

Copy link
Copy Markdown
Contributor

Mat bindings were malfunctioning and not even tested.

Changes:

  • add binding for trace
  • fix in-place assignment with modification (*= and /=). It did not work, although the bindings were defined, because the C++ operators returns void instead of a reference to itself, which is the norm.
  • add support of matrix product
  • add support of VecNoInit type in bindings of Vec. Without that, it's not possible to do anything with mat[i] (because mat[i] is of type VecNoInit and not Vec).
  • add some unit tests

@fredroy fredroy merged commit 87be1a3 into sofa-framework:master Jun 19, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants