-
-
Notifications
You must be signed in to change notification settings - Fork 22
CMake: add support for SymEngine #1358
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
Closed
Closed
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
af16cf6
Hardcoded installation of symengine and gmp
RLee64 9e2b0b3
Created basic rearrangement test case
RLee64 dafb56e
Basic implementation of equation rearrangement
RLee64 4331798
Change symEngineRepresentation to symEngineEquation
RLee64 3953282
Added TODO comments
RLee64 2de9098
Renamed equation to seEquation
RLee64 1238673
Defined type aliases for symengine maps
RLee64 539dbf7
Updated function parameters to use const and pass by reference
RLee64 f2cab14
Added support for parsing SymEngine integers to AST
RLee64 bdb3bd1
Assign parenthood to recreated ast tree
RLee64 3b2c5cc
Removed DAE test case and associated files
RLee64 060b815
Replaced exception use in symEngineEquation()
RLee64 685e1a1
Removed redundant map include
RLee64 81f5766
Change SymEngineEquationResult to use tuple instead of pair
RLee64 5dc3fcb
Added rearrangement test suite
RLee64 4d4ba97
Create new test cases for rearrangement
RLee64 d9c4d10
Remove old rearrangement test case
RLee64 3e8456d
Simple Equation Rearrangement.
agarny bd67b0c
Make SymEngine -> AST parsing work with 3+ children
RLee64 c8d2bd8
Updated unarranged addition cellml file
RLee64 080d5c3
Add/Sub symengine parsing support
RLee64 cce543f
Fixed unarranged multiplication cellml file
RLee64 41e85ce
Mult/div symengine parsing support
RLee64 4cbc787
Improved unarranged trig test cases
RLee64 a47ce0d
Simple trig rearrangement support
RLee64 e157f82
Updated unarranged constants cellml file
RLee64 4fdae53
Added support for various numbers and constants
RLee64 339a003
Fix unarranged polynomial test cases
RLee64 5caecad
Added support for rearranging polynomials
RLee64 5d9cd2f
Update unary +/- parsing
RLee64 3a553be
Made explicit types auto
RLee64 9efff06
Deleted unused test cases
RLee64 f8a39f5
Renamed symengine cellml test files
RLee64 d79d8fc
Cleaned up symengine trigonometric test case
RLee64 aab7d89
Fix issue with recreating unary functions for AST
RLee64 9c1e0b8
Fixed children not setting their parent AST
RLee64 fc1cf1c
Cleaned symengine test cases
RLee64 ec0ace2
Test expected generator equation code
RLee64 f50049e
Made childSeExpression retrieval inline
RLee64 5ca91b3
Fixed spelling error in symengine test files
RLee64 156bd52
Removed redundant symengine multiplication test case
RLee64 ef336d5
Manual simplification of symengine results
RLee64 7c34ff2
Extended rearrangement.
agarny a6005dd
CI: temporarily allow CI tests to be run on PRs to the `staging` branch.
agarny 9b686da
CMake: find and use SymEngine.
agarny 192b717
CI: use SymEngine as a dependency.
agarny File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| /* | ||
| Copyright libOpenCOR contributors. | ||
| Licensed under the Apache License, Version 2.0 (the "License"); | ||
| you may not use this file except in compliance with the License. | ||
| You may obtain a copy of the License at | ||
| http://www.apache.org/licenses/LICENSE-2.0 | ||
| Unless required by applicable law or agreed to in writing, software | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| */ | ||
|
|
||
| #ifdef __clang__ | ||
| # pragma clang diagnostic push | ||
| # pragma clang diagnostic ignored "-Wdeprecated-literal-operator" | ||
| # pragma clang diagnostic ignored "-Wsign-compare" | ||
| # pragma clang diagnostic ignored "-Wunused-parameter" | ||
| #endif | ||
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| /* | ||
| Copyright libOpenCOR contributors. | ||
|
||
| Licensed under the Apache License, Version 2.0 (the "License"); | ||
| you may not use this file except in compliance with the License. | ||
| You may obtain a copy of the License at | ||
| http://www.apache.org/licenses/LICENSE-2.0 | ||
| Unless required by applicable law or agreed to in writing, software | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| */ | ||
|
|
||
| #ifdef __clang__ | ||
| # pragma clang diagnostic pop | ||
| #endif | ||
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
The copyright notice attributes the code to "libOpenCOR contributors" but this is a libCellML repository. The copyright should be "libCellML Contributors" to be consistent with the rest of the codebase, as seen in other files like tests/analyser/analysersymengine.cpp.