Fix warnings - #393
Conversation
Change name in AffineMain: size -> noise_count,... Correct many bugs in AffineForm domain and tests
rename the folder "AffineForm" into "affine" Fix many memory leaks and bugs compil manual fixed compil with option WITH_PYTHON fixed and tested with Debug.
…tation of the slice method in SlicedTube was returning a reference to a Slice object that was created from a shared pointer to a TSlice object. However, the shared pointer was being created with a custom deleter that did nothing, which meant that the TSlice object was never deleted, leading to a memory leak.
Fix warnings
… based on the Eigen library and provide a Python interface to the Affine domain classes and operations. The following files have been added or modified: - CMakeLists.txt: Updated to include the new source files for the Affine domain bindings
# Conflicts: # CMakeLists.txt
…egral test Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…egral test Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Add init_from_list() function to AffineForm to allow initialization from a list of values.
- fix a bug in the binding python code for AffineVariables
fix bug in the binding python In python, change matrix-vector product "*" to matrix-vector product "@"
|
Attention, j'ai trouvé un problème dans le binding python. |
|
Je me permets de donner des éléments de réponse pour la remarque sur la multiplication matrice-vecteur.
Dans la librairie on essaie autant que possible d'avoir des syntaxes similaires en C++, Python et Matlab. Pour les deux premiers étant donné que Eigen défini le produit matrice-vecteur avec le "*", on l'utilise aussi en Python. Pour ce qui est du Matlab il se trouve que c'est en fait la librairie Python qui est importée. Changer cet opérateur changera donc aussi celui en utilisé par Matlab à moins de faire une distinction à coup de |
|
ok et ce ne serait pas mieux de mettre les deux possibilités en python: autoriser les * et les @ |
Co-authored-by: Jordan08 <6967787+Jordan08@users.noreply.github.com>
|
je ferme le pullrequest le temps de finaliser la branch |
J'ai développé avec Clang-18 et plein d'option de Debug et de track de memory leak
ça a révelé beaucoup de warnings et de perte de memoire.
J'ai fixé l'intégralité de ce que j'ai trouvé.
template
concept IsIntervalDomain = codac2::is_interval_based::value;
//concept IsIntervalDomain = std::is_same_v<Scalar,codac2::Interval>;
Avec le Scalar, ça permet d'avoir une compatibilité avec le type Affine que je veux intégrer, sans rien changer au comportement actuelle.
..