Skip to content

[Type] Mat: Fix {add,sub}Transposed() self-aliasing calls - #6276

Open
fredroy wants to merge 2 commits into
sofa-framework:masterfrom
fredroy:unittest_and_fix_selfalias_mat_other
Open

[Type] Mat: Fix {add,sub}Transposed() self-aliasing calls#6276
fredroy wants to merge 2 commits into
sofa-framework:masterfrom
fredroy:unittest_and_fix_selfalias_mat_other

Conversation

@fredroy

@fredroy fredroy commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Similar to #6274
and #6275

All-in-one PR this time, as addTransposed() and subTransposed() are barely used (at least not in the main codebase anyway)

[with-all-tests]


By submitting this pull request, I acknowledge that
I have read, understand, and agree SOFA Developer Certificate of Origin (DCO).


Reviewers will merge this pull-request only if

  • it builds with SUCCESS for all platforms on the CI.
  • it does not generate new warnings.
  • it does not generate new unit test failures.
  • it does not generate new scene test failures.
  • it does not break API compatibility.
  • it is more than 1 week old (or has fast-merge label).

@fredroy fredroy added pr: fix Fix a bug pr: status to review To notify reviewers to review this pull-request pr: test PR adding test(s) in SOFA pr: AI-aided Label notifying the reviewers that part or all of the PR has been generated with the help of an AI labels Aug 31, 2026
@fredroy

fredroy commented Aug 31, 2026

Copy link
Copy Markdown
Contributor Author

[ci-build][with-all-tests]

(*this)(i,j) = sum;
(*this)(j,i) = sum;
}
(*this)(i,i) += (*this)(i,i);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I would put this before the for loop for cache purpose. Same for subTranspose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: AI-aided Label notifying the reviewers that part or all of the PR has been generated with the help of an AI pr: fix Fix a bug pr: status to review To notify reviewers to review this pull-request pr: test PR adding test(s) in SOFA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants