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
The function exp causes an error when called on ScalarOperator and should probably return another ScalarOperator.
Expected behavior
exp should be defined since has_exp(ScalarOperator) = true
Minimal Reproducible Example 👇
File error.jl
using SciMLOperators
a =ScalarOperator(2.0)
println(has_exp(a)) # print true
b =exp(a) # -> causes the error, should probably ScalarOperator(exp(2.0))
Error & Stacktrace ⚠️
ERROR: MethodError: Cannot `convert` an object of type
ScalarOperator{Float64, SciMLOperators.FilterKwargs{typeof(SciMLOperators.DEFAULT_UPDATE_FUNC), Tuple{}}} to an object of type
AbstractMatrix
The function`convert` exists, but no method is defined for this combination of argument types.
Closest candidates are:convert(::Type{T}, ::T) where T
@ Base Base.jl:126convert(::Type{T}, ::LinearAlgebra.Factorization) where T<:AbstractArray
@ LinearAlgebra ***\.julia\juliaup\julia-1.11.1+0.x64.w64.mingw32\share\julia\stdlib\v1.11\LinearAlgebra\src\factorization.jl:104convert(::Type{T}, ::T) where T<:AbstractArray
@ Base abstractarray.jl:16...
Stacktrace:
[1] (Matrix)(L::ScalarOperator{Float64, SciMLOperators.FilterKwargs{typeof(SciMLOperators.DEFAULT_UPDATE_FUNC), Tuple{}}})
@ SciMLOperators ***\.julia\packages\SciMLOperators\KVzmP\src\interface.jl:371
[2] exp(L::ScalarOperator{Float64, SciMLOperators.FilterKwargs{typeof(SciMLOperators.DEFAULT_UPDATE_FUNC), Tuple{}}})
@ SciMLOperators ***\.julia\packages\SciMLOperators\KVzmP\src\interface.jl:408
[3] top-level scope
@ ***\error.jl:5
Environment (please complete the following information):
I used a temp environement
Output of using Pkg; Pkg.status()
[c0aeaf25] SciMLOperators v0.3.12
Output of using Pkg; Pkg.status(; mode = PKGMODE_MANIFEST)
Describe the bug 🐞
The function
exp
causes an error when called onScalarOperator
and should probably return anotherScalarOperator
.Expected behavior
exp
should be defined sincehas_exp(ScalarOperator) = true
Minimal Reproducible Example 👇
File error.jl
Error & Stacktrace⚠️
Environment (please complete the following information):
I used a temp environement
using Pkg; Pkg.status()
[c0aeaf25] SciMLOperators v0.3.12
using Pkg; Pkg.status(; mode = PKGMODE_MANIFEST)
versioninfo()
The text was updated successfully, but these errors were encountered: