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

adding DEC operators #116

Merged
merged 4 commits into from
Jun 2, 2024
Merged

adding DEC operators #116

merged 4 commits into from
Jun 2, 2024

Conversation

odedstein
Copy link
Collaborator

This pull request adds DEC operators in the style of https://www.cs.cmu.edu/~kmcrane/Projects/DDG/

@sgsellan I'd be glad if you could double check to make sure I did these correctly :)

@odedstein odedstein requested a review from sgsellan March 15, 2024 01:39
@odedstein odedstein added the enhancement New feature or request label Mar 15, 2024
Copy link
Owner

@sgsellan sgsellan left a comment

Choose a reason for hiding this comment

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

This PR breaks our (unofficial) "one function per .py file" rule. Do we want to break this?

@odedstein
Copy link
Collaborator Author

I don't care whether we have separate files for this or not, I have no strong feelings.
You can decide.

"""

l_sq = halfedge_lengths_squared(V,F)
return dec_h1_intrinsic(l_sq,F,E_to_he=E_to_he)
Copy link
Owner

Choose a reason for hiding this comment

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

Aha! Shouldn't this be dec_h1inv_intrinsic?

@sgsellan
Copy link
Owner

sgsellan commented May 5, 2024

See typo above. We did not catch that typo due to a bigger problem: unless I am missing something, currently, the inv functions (intrinsic and not) have no unit test. I do feel strongly about this rule: if a function is included in __init__.py (i.e., can be imported as gpytoolbox.function_name), it should have a unit test.

@odedstein
Copy link
Collaborator Author

Good point. Will fix this and add unit tests.

@sgsellan
Copy link
Owner

This looks good to me now! Happy to merge

@sgsellan sgsellan added the ready to merge This PR is finished and will be merged for the next release label May 31, 2024
@odedstein odedstein merged commit 93917fc into main Jun 2, 2024
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ready to merge This PR is finished and will be merged for the next release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants