Skip to content

Conversation

willtebbutt
Copy link
Member

@willtebbutt willtebbutt commented Nov 20, 2020

to_vec for AbstractZeros was returning a non-empty vector, which is both unnecessary and potentially incorrect (AbstractZeros are structural, so if FiniteDifferences were to perturb an AbstractZero, bad things would presumably happen).

@willtebbutt willtebbutt changed the title Tweak Zero to vec Tweak Zero and Diagonal to vec Nov 20, 2020
@willtebbutt willtebbutt changed the title Tweak Zero and Diagonal to vec Tweak Zero to vec Nov 20, 2020
Copy link
Member

@mzgubic mzgubic left a comment

Choose a reason for hiding this comment

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

LGTM. I wonder whether the test_to_vec function could be improved somehow?

@willtebbutt willtebbutt merged commit 673d6fa into master Nov 20, 2020
@willtebbutt willtebbutt deleted the wct/fix-Zero-tovec branch November 20, 2020 14:56
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 this pull request may close these issues.

2 participants