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

[Merged by Bors] - feat(linear_algebra/affine_space/barycentric_coords): define barycentric coordinates #9472

Closed
wants to merge 3 commits into from

Conversation

ocfnash
Copy link
Collaborator

@ocfnash ocfnash commented Sep 30, 2021


Open in Gitpod

@ocfnash ocfnash added the awaiting-review The author would like community review of the PR label Sep 30, 2021
Comment on lines +169 to +171
/-- The sum of the coordinates of an element `m : M` with respect to a basis. -/
noncomputable def sum_coords : M →ₗ[R] R :=
finsupp.lsum ℕ (λ i, linear_map.id) ∘ₗ (b.repr : M →ₗ[R] ι →₀ R)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have a use-case in mind outside of barycentric coordinates? I'd be inclined to put this in that file if not.

Copy link
Collaborator Author

@ocfnash ocfnash Oct 1, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On reflection I think you're right but maybe I'll canvass an opinion from @Vierkantor before I move things.

(Edit: to answer your question, I do not have another use-case in mind though I expect there will be others eventually.)

@semorrison semorrison added awaiting-author A reviewer has asked the author a question or requested changes and removed awaiting-review The author would like community review of the PR labels Oct 1, 2021
@ocfnash ocfnash added awaiting-review The author would like community review of the PR and removed awaiting-author A reviewer has asked the author a question or requested changes labels Oct 1, 2021
@PatrickMassot PatrickMassot added awaiting-author A reviewer has asked the author a question or requested changes and removed awaiting-review The author would like community review of the PR labels Oct 1, 2021
@ocfnash ocfnash added awaiting-review The author would like community review of the PR and removed awaiting-author A reviewer has asked the author a question or requested changes labels Oct 1, 2021
@PatrickMassot PatrickMassot added ready-for-bors and removed awaiting-review The author would like community review of the PR labels Oct 1, 2021
@jcommelin
Copy link
Member

Thanks 🎉

bors merge

@github-actions github-actions bot added the ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) label Oct 2, 2021
bors bot pushed a commit that referenced this pull request Oct 2, 2021
@bors
Copy link

bors bot commented Oct 2, 2021

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(linear_algebra/affine_space/barycentric_coords): define barycentric coordinates [Merged by Bors] - feat(linear_algebra/affine_space/barycentric_coords): define barycentric coordinates Oct 2, 2021
@bors bors bot closed this Oct 2, 2021
@bors bors bot deleted the barycentric_coords branch October 2, 2021 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-bors ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants