Skip to content

Commit 32cee87

Browse files
committed
add kernel method
1 parent d22485d commit 32cee87

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/kernel.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ function kernel(::Type{M}; ops...) where {M}
5454
Kernel{Type{M},typeof(nt)}(M,nt)
5555
end
5656

57+
# kernel(Normal) do x
58+
# (μ=x,σ=x^2)
59+
# end
60+
61+
kernel(f, ::Type{M}) where {M} = kernel(M, f)
62+
5763
# TODO: Would this benefit from https://github.com/tisztamo/FunctionWranglers.jl?
5864
mapcall(t, x) = map(func -> func(x), t)
5965

0 commit comments

Comments
 (0)