Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Delete obsolete unit tests | Nao Pross | 2024-05-12 | 18 | -828/+0 |
| | |||||
* | Forgot to make StateMonad a frozen dataclass | Nao Pross | 2024-05-12 | 1 | -1/+1 |
| | | | | in commit 75e0780acdd537e43e1ec8c7228e68ead13515cf | ||||
* | Mark functions as deprecated | Nao Pross | 2024-05-12 | 3 | -1/+32 |
| | |||||
* | Collapse polymatrix.variable module into a single file | Nao Pross | 2024-05-12 | 10 | -31/+28 |
| | |||||
* | Collapse StateMonad into single class | Nao Pross | 2024-05-12 | 13 | -124/+51 |
| | | | | Same reason as previous commit f094e4d91b44fc1e8b5f11aac2dd8073ba024fc8 | ||||
* | Collapse ExpressionState to a single class | Nao Pross | 2024-05-12 | 62 | -148/+122 |
| | | | | | | | | | | | | | | | | | ExpressionState has the usual mixin, whereby one splits the ABC into smaller parts called mixins, however this class only had one mixin and it makes no sense to have three classes instead of one. This class was simply not complex enough to make it worth maintaining all these files. I do not see a use case that would extend ExpressionState in a way that would introduce enough complexity for the mixin structure to be necessary. But it that were to happen in the future it is easy to reintroduce this structure I just deleted. In addition to reducing complexity this also fixes the inconsistent use of ExpressionStateMixin and ExpressionState across the mixin classes of Expression. | ||||
* | Delete ParametrizeMatrixExprMixin, update ParametrizeExprMixin to work with ↵ | Nao Pross | 2024-05-11 | 5 | -119/+22 |
| | | | | any shape | ||||
* | Mark get_variable_indices_from_variable as deprecated | Nao Pross | 2024-05-11 | 1 | -2/+4 |
| | |||||
* | Fix ParametrizeExpr, was broken since changes in ExpressionState | Nao Pross | 2024-05-11 | 1 | -41/+40 |
| | | | | Commit that broke it: 13f11cb60021d4c143ce8c80e9b0c5027a4bf434 | ||||
* | Add more helper methods to ExpressionState | Nao Pross | 2024-05-11 | 1 | -2/+32 |
| | |||||
* | Clean up PolyMatrixAsAffineExpression | Nao Pross | 2024-05-10 | 4 | -45/+58 |
| | |||||
* | Minor changes in ExpressionState | Nao Pross | 2024-05-10 | 1 | -3/+5 |
| | |||||
* | Reintroduce __truediv__ for int and float types | Nao Pross | 2024-05-10 | 1 | -0/+6 |
| | |||||
* | Check for uniqueness of names in ExpressionState | Nao Pross | 2024-05-09 | 1 | -3/+10 |
| | |||||
* | Remove redundant case in FromStateMonadMixin | Nao Pross | 2024-05-09 | 1 | -7/+1 |
| | |||||
* | Cleanup some typing issues and comments | Nao Pross | 2024-05-09 | 3 | -85/+58 |
| | |||||
* | Improve error message of matrix multiplication | Nao Pross | 2024-05-09 | 1 | -3/+3 |
| | |||||
* | Adapt CombinationsExprMixin to work with expression coefficients | Nao Pross | 2024-05-09 | 2 | -13/+55 |
| | |||||
* | Create helper PolyDict.is_constant to check if a polynomial is a constant | Nao Pross | 2024-05-09 | 1 | -0/+14 |
| | |||||
* | Separate out computation of power in PowerExprMixin into staticmethod | Nao Pross | 2024-05-09 | 1 | -21/+32 |
| | |||||
* | Add init_from_statemonad | Nao Pross | 2024-05-09 | 1 | -2/+5 |
| | | | | Forgot to add to commit 573b7445866e1f870ebc1c0482114f1c19e2e7e0 | ||||
* | Add helper method to PolyDict.constant to get constant term | Nao Pross | 2024-05-09 | 1 | -0/+6 |
| | |||||
* | Create PowerExprMixin | Nao Pross | 2024-05-09 | 3 | -0/+85 |
| | |||||
* | Add few comments to FromStateMonad | Nao Pross | 2024-05-09 | 1 | -0/+7 |
| | |||||
* | Fix bug in __str__ of StateMonad | Nao Pross | 2024-05-09 | 1 | -1/+1 |
| | |||||
* | Improve implementation of DegreeExprMixin | Nao Pross | 2024-05-09 | 1 | -28/+20 |
| | |||||
* | Create FromStateMonadMixin | Nao Pross | 2024-05-09 | 4 | -10/+85 |
| | |||||
* | Create singular polymatrix.from_name to remove ambiguous return type | Nao Pross | 2024-05-08 | 2 | -9/+8 |
| | |||||
* | Fix bug in PolyMatrixAsAffineExpr.affine_coefficient | Nao Pross | 2024-05-08 | 1 | -9/+21 |
| | |||||
* | Add expression and expressionstate to doc | Nao Pross | 2024-05-07 | 1 | -0/+16 |
| | |||||
* | Add helper methods to retrieve variables from ExpressionState | Nao Pross | 2024-05-07 | 1 | -0/+21 |
| | |||||
* | Fix bug in PolyMatrixAsAffinExpression | Nao Pross | 2024-05-07 | 2 | -2/+2 |
| | | | | | | The bug was introduced by a bugfix, ironic: 7f26976a32513540d94dff3fc5bf3d7d2033f7e4 | ||||
* | Fix bug in v_stack that creates unnecessary Expressions, add __str__ to ↵ | Nao Pross | 2024-05-07 | 2 | -1/+6 |
| | | | | combinations | ||||
* | Improve docstring | Nao Pross | 2024-05-07 | 1 | -0/+12 |
| | |||||
* | Merge branch 'main' of gitlab.ethz.ch:npross/polymatrix | Michael Schneeberger | 2024-05-07 | 3 | -13/+11 |
|\ | |||||
| * | Small improvements of PolyMatrixAsAffineExpr, docstrings | Nao Pross | 2024-05-07 | 3 | -13/+11 |
| | | |||||
* | | add example of degree 3 in docstring of monomial_to_monomial_vector_indices | Michael Schneeberger | 2024-05-07 | 1 | -3/+9 |
|/ | |||||
* | rename and comment monomial_to_monomial_vector_indices | Michael Schneeberger | 2024-05-07 | 2 | -4/+15 |
| | |||||
* | add comments and remove unused code in denserepr module | Michael Schneeberger | 2024-05-07 | 2 | -68/+41 |
| | |||||
* | Remove old comment | Nao Pross | 2024-05-07 | 1 | -2/+1 |
| | |||||
* | Add MonomialIndex.combinations_of_degree | Nao Pross | 2024-05-07 | 2 | -23/+37 |
| | | | | To improve PolyMatrixAsAffineExpression.affine_coefficients_by_degrees | ||||
* | Improve PolyMatrixAsAffineExpr.affine_coefficient | Nao Pross | 2024-05-07 | 1 | -8/+10 |
| | |||||
* | Fix bug in constructor of PolyMatrixAsAffineExpr | Nao Pross | 2024-05-07 | 1 | -1/+1 |
| | |||||
* | Add grouping of affine coefficients by variables | Nao Pross | 2024-05-06 | 1 | -1/+18 |
| | | | | This is meant to be used in the sumofsquares package | ||||
* | Update doc automodule after name change from polymatrix.typing to .index | Nao Pross | 2024-05-06 | 1 | -1/+1 |
| | |||||
* | Fix MonomialIndex ordering and MonomialIndex.is_constant | Nao Pross | 2024-05-06 | 1 | -4/+7 |
| | |||||
* | Cache degree in PolyMatrixAsAffineExpressionMixin | Nao Pross | 2024-05-06 | 3 | -13/+13 |
| | |||||
* | Revert "Fix circular imports caused by type annotations" | Nao Pross | 2024-05-06 | 52 | -316/+77 |
| | | | | This reverts commit f3d55a7bf8052ecd49386ae4bc49f9a44c7a8c20. | ||||
* | Fix indexing bug in VariableMixin | Nao Pross | 2024-05-05 | 2 | -2/+3 |
| | |||||
* | Rename polymatrix.typing to polymatrix.index | Nao Pross | 2024-05-05 | 31 | -29/+30 |
| |