The inferred return type for RegularizationSmooth is any, when we want a concrete type like Float64
Minimal Reproducible Example 👇
using DataInterpolations
using RegularizationTools
using Test
t = 0:0.1:10 |> collect
u = sin.(t)
A = RegularizationSmooth(u, t; alg = :fixed)
@inferred A(1.0)
Error & Stacktrace ⚠️
ERROR: return type Float64 does not match inferred return type Any
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:35
[2] top-level scope
@ REPL[9]:1
Environment (please complete the following information):
Describe the bug 🐞
The inferred return type for RegularizationSmooth is any, when we want a concrete type like
Float64
Minimal Reproducible Example 👇
Error & Stacktrace ⚠️
Environment (please complete the following information):
using Pkg; Pkg.status()
using Pkg; Pkg.status(; mode = PKGMODE_MANIFEST)
versioninfo()