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

rrule_test requires returned composite objects to be collectable #74

Closed
Kolaru opened this issue Nov 16, 2020 · 5 comments
Closed

rrule_test requires returned composite objects to be collectable #74

Kolaru opened this issue Nov 16, 2020 · 5 comments

Comments

@Kolaru
Copy link

Kolaru commented Nov 16, 2020

rrule_test use collect to get the field of composite objects, but it is not always possible, as for e.g. qr

F = qr(randn(5, 5))
Q, R = F  # Valid since F is iterable
collect(F)  # Errors since length is not defined on LinearAlgebra.QRCompactWY

Using [y...] instead of collect(y) should do the trick.

@oxinabox
Copy link
Member

Which collect in particular is a problem?
Several of them should go away once we do #57

@Kolaru
Copy link
Author

Kolaru commented Nov 16, 2020

The second one here:

@test y_ad == y || isapprox(collect(y_ad), collect(y); rtol=rtol, atol=atol)

@oxinabox
Copy link
Member

Yep that one will go away when we do #57 right

@nickrobinson251
Copy link
Contributor

Did removing the collect calls (in #57) resolve this?

@oxinabox
Copy link
Member

yes

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

No branches or pull requests

3 participants