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

Simplify all objects on creation #1230

Closed
valentinsulzer opened this issue Nov 4, 2020 · 1 comment · Fixed by #1252
Closed

Simplify all objects on creation #1230

valentinsulzer opened this issue Nov 4, 2020 · 1 comment · Fixed by #1252
Assignees

Comments

@valentinsulzer
Copy link
Member

valentinsulzer commented Nov 4, 2020

Instead of just simplifying if constant.
See also #986

@valentinsulzer valentinsulzer self-assigned this Nov 4, 2020
valentinsulzer added a commit that referenced this issue Nov 15, 2020
valentinsulzer added a commit that referenced this issue Nov 15, 2020
valentinsulzer added a commit that referenced this issue Nov 15, 2020
valentinsulzer added a commit that referenced this issue Nov 15, 2020
valentinsulzer added a commit that referenced this issue Nov 17, 2020
valentinsulzer added a commit that referenced this issue Nov 17, 2020
valentinsulzer added a commit that referenced this issue Nov 17, 2020
valentinsulzer added a commit that referenced this issue Nov 18, 2020
valentinsulzer added a commit that referenced this issue Nov 18, 2020
valentinsulzer added a commit that referenced this issue Nov 18, 2020
valentinsulzer added a commit that referenced this issue Nov 18, 2020
@valentinsulzer
Copy link
Member Author

Further simplifications for matrix multiplications:

  • associative: A @ (B @ y) = (A @ B) @ y), often A @ B is constant but y is not (e.g. discretized gradient or divergence) and so the whole expression is simplified
  • distributive A @ (B + C) = (A @ B + A @ C), in many cases A @ B is constant and then A @ C can be further simplified (e.g. A @ (b + C @ y) + e = (A @ b + e) + (A @ C) @ y, A @ b + e is constant and A @ C is constant

valentinsulzer added a commit that referenced this issue Nov 18, 2020
valentinsulzer added a commit that referenced this issue Nov 22, 2020
valentinsulzer added a commit that referenced this issue Nov 22, 2020
valentinsulzer added a commit that referenced this issue Nov 23, 2020
valentinsulzer added a commit that referenced this issue Nov 23, 2020
valentinsulzer added a commit that referenced this issue Nov 23, 2020
valentinsulzer added a commit that referenced this issue Nov 23, 2020
valentinsulzer added a commit that referenced this issue Nov 24, 2020
valentinsulzer added a commit that referenced this issue Dec 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant