-
Notifications
You must be signed in to change notification settings - Fork 297
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
[Merged by Bors] - feat(data/matrix): has_repr
instances for fin
vectors and matrices
#7953
Conversation
This PR provides `has_repr` instances for the types `fin n → α` and `matrix (fin m) (fin n) α`, displaying in the `![...]` matrix notation. This is especially useful if you want to `#eval` a calculation involving matrices.
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
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.
Just to check, this only impacts eval
and not the goal view, right? I don't think showing A : matrix (fin 1) (fin 1) := ![![A 0 0]]
is particularly useful, especially for fin 10
!
Yes, the goal view still shows |
(Just restarted the "cancel previous runs" job that failed. It almost seems like it tried to cancel itself!) |
bors r+ |
#7953) This PR provides `has_repr` instances for the types `fin n → α` and `matrix (fin m) (fin n) α`, displaying in the `![...]` matrix notation. This is especially useful if you want to `#eval` a calculation involving matrices. [Based on this Zulip post.](https://leanprover.zulipchat.com/#narrow/stream/113489-new-members/topic/Matrix.20operations/near/242766110) Co-authored-by: Anne Baanen <Vierkantor@users.noreply.github.com>
Pull request successfully merged into master. Build succeeded: |
has_repr
instances for fin
vectors and matriceshas_repr
instances for fin
vectors and matrices
This PR provides
has_repr
instances for the typesfin n → α
andmatrix (fin m) (fin n) α
, displaying in the![...]
matrix notation. This is especially useful if you want to#eval
a calculation involving matrices.Based on this Zulip post.