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

support arbitary types for vect -- use zero_tangent for _instantiate_zeros #785

Merged
merged 3 commits into from
Feb 13, 2024

Conversation

oxinabox
Copy link
Member

@oxinabox oxinabox commented Feb 12, 2024

zero_tangent correctly handles zeros for things that do not have zero implemented, by using it in _instantitate_zeros we can support anything being passed to vect

Without this rule, anything with a vector being constructed is very annoying, makes Diffractor very sad.

Not sure if should go further and also knock out some of the array cases.
Especially arrays of arrays. But that can always be a follow up

@oxinabox oxinabox requested a review from mcabbott February 12, 2024 06:13
@oxinabox
Copy link
Member Author

Failure on x86 julia 1.6 is that occational bad alloc we see, but have never tracked down

@oxinabox oxinabox changed the title use zero_tangent for _instantiate_zeros support arbitary types for vect -- use zero_tangent for _instantiate_zeros Feb 13, 2024
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@oxinabox oxinabox merged commit de398ae into main Feb 13, 2024
6 of 11 checks passed
@oxinabox oxinabox deleted the ox/izt branch February 13, 2024 11:12
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