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

[Bridges] fix tests for SplitComplexZerosBridge #1951

Merged
merged 2 commits into from
Jul 14, 2022

Conversation

odow
Copy link
Member

@odow odow commented Jul 13, 2022

The amount of little niggly things here shows how hard it is to write a bridge without these new tests.

@odow odow added Submodule: Bridges About the Bridges submodule Project: generic number support Issues relating to generic number (e.g., Complex) support labels Jul 13, 2022
@odow odow merged commit 26a7eb1 into master Jul 14, 2022
@odow odow deleted the od/split-complex-zero-test branch July 14, 2022 00:59
@@ -34,6 +34,7 @@ struct SplitComplexZerosBridge{
G<:MOI.Utilities.TypedLike{Complex{T}},
} <: AbstractBridge
dimension::Int
func::G # Simplify querying ConstraintFunction.
Copy link
Member

Choose a reason for hiding this comment

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

We don't want to simplify it. It's ok for it to be slow. However, we want bridges to have low memory footprint

Copy link
Member Author

Choose a reason for hiding this comment

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

I've been prioritizing correctness and completeness over performance. But yeah, we can fix this in a different PR if you like.

Copy link
Member

Choose a reason for hiding this comment

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

Yes, thanks for making the bridges tests working with complex! Just wanted to check we're on the same page about this which is why I also clarified it in the docs now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Project: generic number support Issues relating to generic number (e.g., Complex) support Submodule: Bridges About the Bridges submodule
Development

Successfully merging this pull request may close these issues.

2 participants