Fast and differentiable implementations of matrix exponentials, Krylov exponential matrix-vector multiplications ("expmv"), KIOPS, ExpoKit functions, and more. All your exponential needs in SciML form.
This happened as I tried to use the package for GPU-based matrix exponentiation (Base.exp can't do it). In constrast, expv works well. Though my julia-fu is not quite there yet, I would be happy to try and get this working if given some directions.
using CUDA, Flux, ExponentialUtilities
CUDA.allowscalar(false)
M = rand(Float32,10,10) |> gpu
v = rand(10) |> gpu
ExponentialUtilities.exponential!(M) #ERROR: Scalar indexing is disallowed.
ExponentialUtilities.exp_generic(M) #ERROR: Scalar indexing is disallowed.
ExponentialUtilities.expv(1f0,M,v) #Works
Hey.
This happened as I tried to use the package for GPU-based matrix exponentiation (Base.exp can't do it). In constrast,
expv
works well. Though my julia-fu is not quite there yet, I would be happy to try and get this working if given some directions.The error message: