You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to be able to use the Devectorize package in cases where you want it to be fast for AbstractArray types, but in which you still want the code to work on more abstract types. i.e. you would like to be able to write, e.g.
@devec! a = b + γ*c
and have it be fast and in-place on a for arrays, but still work for arbitrary types supporting the requisite + and * operations. Note also that it would be nice to have @devec! a = ... rather than @devec a[:] = ..., to make it clearer that it works even when a is some more abstract type that doesn't necessarily support [:].
It would be nice to be able to use the Devectorize package in cases where you want it to be fast for
AbstractArray
types, but in which you still want the code to work on more abstract types. i.e. you would like to be able to write, e.g.and have it be fast and in-place on
a
for arrays, but still work for arbitrary types supporting the requisite+
and*
operations. Note also that it would be nice to have@devec! a = ...
rather than@devec a[:] = ...
, to make it clearer that it works even whena
is some more abstract type that doesn't necessarily support[:]
.See e.g. JuliaLang/ODE.jl/#33 and JuliaLang/LinearAlgebra.jl#119
Could this be implementd by sprinkling a few
method_exists
checks here and there?The text was updated successfully, but these errors were encountered: