-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
generic_matvecmul complains about deprecated + #94
Comments
In this case the warning is asking us whether we really mean to take a product of a matrix of numbers and a vector of vectors. I don't know what to do here, but I think it's cool that there is a use case for this. |
One possibility might be to use |
It's a bit tricky. Usually, I would infer the right return type by something like Another question is whether you really want to store your |
Probably we shouldn't use matvec with vectors of vectors in ODE.jl, but that is a different question. I think it would be nice to have a generic matvecmul, which works for all types that support the necessary operations ( Why is |
I agree. If possible, if would be great to support fully generic |
I see. Maybe one could have a |
I see your point, but would prefer some other solution because a I realise that it there is an issue for |
With something like this
you can almost get what you want. A slightly modifies version of your example is
|
Thanks! For the general problem here, I would say that if the underlying issue is that |
I agree, but it would actually have to be something like The definition of |
Deprecation of |
We noticed the problem today in SciML/ODE.jl#29. A boiled-down version is
which gives
The problem appears to be that
generic_matvecmul
(and alsogeneric_matmatmul
) useszero(R)
to initialize the variable holding the sum.R
is some promoted type, which happens to beAny
in the case above andzero(Any)==0
. Adding the first product, which is aVector
, triggers the depreciation warning.The text was updated successfully, but these errors were encountered: