Skip to content
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

Move algebraic definitions from functions to constructors #145

Closed
schillic opened this issue Jan 16, 2018 · 0 comments · Fixed by #236
Closed

Move algebraic definitions from functions to constructors #145

schillic opened this issue Jan 16, 2018 · 0 comments · Fixed by #236
Assignees
Labels
simplification 👶 Simplifies code

Comments

@schillic
Copy link
Member

For MinkowskiSum and CartesianProduct we have defined neutral/absorbing elements only for the +/* functions, but not for the constructor. It would be more consistent to define them using new constructors so that A + B === MinkowskiSum(A, B) in all cases.

Note that one has to add type parameters to avoid ambiguities. We saw that for ConvexHull where we already have this (because there is no separate function symbol).

@schillic schillic added the simplification 👶 Simplifies code label Jan 16, 2018
@schillic schillic self-assigned this Jan 16, 2018
schillic added a commit that referenced this issue Feb 24, 2018
#162 #145 #165 - add macro to restore old array type behavior
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
simplification 👶 Simplifies code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant