New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SofaBaseLinearSolver] Cleaning in FullMatrix & FullVector & MechanicalState #1792
Merged
fredroy
merged 37 commits into
sofa-framework:master
from
CRIStAL-PADR:pr-fullmatrix-clean
Feb 25, 2021
Merged
[SofaBaseLinearSolver] Cleaning in FullMatrix & FullVector & MechanicalState #1792
fredroy
merged 37 commits into
sofa-framework:master
from
CRIStAL-PADR:pr-fullmatrix-clean
Feb 25, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…rn template for double/float/bool Don't forget to include the .inl if you want to instanciate the templates for other types.
damienmarchal
added
pr: clean
Cleaning the code
pr: status wip
Development in the pull-request is still in progress
labels
Feb 8, 2021
damienmarchal
changed the title
[SofaBaseLinearSolver] Minor cleaning in FullMatrix & FullVector.
[SofaBaseLinearSolver]Cleaning in FullMatrix & FullVector & MechanicalState
Feb 11, 2021
damienmarchal
added
pr: status to review
To notify reviewers to review this pull-request
pr: breaking
Change possibly inducing a compilation error
and removed
pr: status wip
Development in the pull-request is still in progress
labels
Feb 16, 2021
[ci-build][with-scene-tests][with-regression-tests] |
damienmarchal
added
pr: status to review
To notify reviewers to review this pull-request
and removed
pr: status wip
Development in the pull-request is still in progress
labels
Feb 17, 2021
damienmarchal
added
pr: status wip
Development in the pull-request is still in progress
and removed
pr: status to review
To notify reviewers to review this pull-request
labels
Feb 18, 2021
# Conflicts: # SofaKernel/modules/SofaCore/src/sofa/core/behavior/MechanicalState.cpp # SofaKernel/modules/SofaCore/src/sofa/core/behavior/MechanicalState.h # SofaKernel/modules/SofaCore/src/sofa/core/behavior/MechanicalState.inl
It was doing the same as DataTypeInfo but only for float/double while DataTypeInfo was working everytime.
damienmarchal
added
pr: status to review
To notify reviewers to review this pull-request
and removed
pr: status wip
Development in the pull-request is still in progress
labels
Feb 22, 2021
[ci-build][with-scene-tests][with-regression-tests] |
fredroy
reviewed
Feb 24, 2021
typedef Mat<4,4,SReal> Matrix4; | ||
} | ||
|
||
/// Deprecated namespace. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
put back those typedefs to compat/sofa/defaulttype/Mat.h
Back to review, |
good for me 😗 |
# Conflicts: # SofaKernel/modules/Sofa.Type/CMakeLists.txt # SofaKernel/modules/SofaDefaultType/compat/sofa/defaulttype/Mat.h # SofaKernel/modules/SofaDefaultType/src/sofa/defaulttype/fwd.h
I removed the conflict... let's go for a CI ride. |
hugtalbot
added
pr: status ready
Approved a pull-request, ready to be squashed
and removed
pr: status to review
To notify reviewers to review this pull-request
labels
Feb 25, 2021
damienmarchal
added a commit
to CRIStAL-PADR/sofa
that referenced
this pull request
Mar 1, 2021
…alState (sofa-framework#1792) * WIP * [SofaBaseLinearSolver] Move definition in .inl instead of .h and extern template for double/float/bool Don't forget to include the .inl if you want to instanciate the templates for other types. * Add SparseLUSolver.inl in CMakeLists.txt * WIP remove includes. * WIP * WIP * WIP * WIP * WIP * WIP * WIP * WIP * Update for Sofa.Type * FIX * WIP * WIP * WIP * WIP * WIP * WIP * WIP * FIX A BUG In BTD * Add sofa::SignedIndex in sofa/config.h.in * WIP * Use sofa::Index in MultiMatrixAccessor. * Use sofa::SignedIndex where relevant. * Remove Name() method in CompressRowSparseMatrix It was doing the same as DataTypeInfo but only for float/double while DataTypeInfo was working everytime. * Use sofa::SignedIndex instead fo sofa:Index as some loops are going backward. * Update config.h.in * FIXUP * FIXUP
damienmarchal
added a commit
to CRIStAL-PADR/sofa
that referenced
this pull request
Mar 4, 2021
…alState (sofa-framework#1792) * WIP * [SofaBaseLinearSolver] Move definition in .inl instead of .h and extern template for double/float/bool Don't forget to include the .inl if you want to instanciate the templates for other types. * Add SparseLUSolver.inl in CMakeLists.txt * WIP remove includes. * WIP * WIP * WIP * WIP * WIP * WIP * WIP * WIP * Update for Sofa.Type * FIX * WIP * WIP * WIP * WIP * WIP * WIP * WIP * FIX A BUG In BTD * Add sofa::SignedIndex in sofa/config.h.in * WIP * Use sofa::Index in MultiMatrixAccessor. * Use sofa::SignedIndex where relevant. * Remove Name() method in CompressRowSparseMatrix It was doing the same as DataTypeInfo but only for float/double while DataTypeInfo was working everytime. * Use sofa::SignedIndex instead fo sofa:Index as some loops are going backward. * Update config.h.in * FIXUP * FIXUP
alxbilger
pushed a commit
to alxbilger/sofa
that referenced
this pull request
Oct 27, 2023
…alState (sofa-framework#1792) * WIP * [SofaBaseLinearSolver] Move definition in .inl instead of .h and extern template for double/float/bool Don't forget to include the .inl if you want to instanciate the templates for other types. * Add SparseLUSolver.inl in CMakeLists.txt * WIP remove includes. * WIP * WIP * WIP * WIP * WIP * WIP * WIP * WIP * Update for Sofa.Type * FIX * WIP * WIP * WIP * WIP * WIP * WIP * WIP * FIX A BUG In BTD * Add sofa::SignedIndex in sofa/config.h.in * WIP * Use sofa::Index in MultiMatrixAccessor. * Use sofa::SignedIndex where relevant. * Remove Name() method in CompressRowSparseMatrix It was doing the same as DataTypeInfo but only for float/double while DataTypeInfo was working everytime. * Use sofa::SignedIndex instead fo sofa:Index as some loops are going backward. * Update config.h.in * FIXUP * FIXUP
alxbilger
pushed a commit
to alxbilger/sofa
that referenced
this pull request
Oct 27, 2023
…alState (sofa-framework#1792) * WIP * [SofaBaseLinearSolver] Move definition in .inl instead of .h and extern template for double/float/bool Don't forget to include the .inl if you want to instanciate the templates for other types. * Add SparseLUSolver.inl in CMakeLists.txt * WIP remove includes. * WIP * WIP * WIP * WIP * WIP * WIP * WIP * WIP * Update for Sofa.Type * FIX * WIP * WIP * WIP * WIP * WIP * WIP * WIP * FIX A BUG In BTD * Add sofa::SignedIndex in sofa/config.h.in * WIP * Use sofa::Index in MultiMatrixAccessor. * Use sofa::SignedIndex where relevant. * Remove Name() method in CompressRowSparseMatrix It was doing the same as DataTypeInfo but only for float/double while DataTypeInfo was working everytime. * Use sofa::SignedIndex instead fo sofa:Index as some loops are going backward. * Update config.h.in * FIXUP * FIXUP
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
pr: breaking
Change possibly inducing a compilation error
pr: clean
Cleaning the code
pr: status ready
Approved a pull-request, ready to be squashed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Explicit instanciation of FullMatrix and FullVector for float, double and bool
Move code definition from header (.h) to translation unit (.cpp or .inl).
Forward declare Mat<> in sofa/type/fwd.h
Replace AClass::Index with the generic sofa::Index;
If you were using AClass::Index, use sofa::Index instead
If you do your own template instanciation don't forget to include the corresponding .inl file instead of the .h
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