rkube
1
Hi,
in a custom module I’m defining function-like objects like this:
export trf_standardize
struct trf_standardize
means
stds
end
function (t::trf_standardize)(x)
(x .- t.means) ./ (t.stds)
end
How would I export the function-like object?
mbaz
2
No need to do anything – exporting the type exports the functor as well.
2 Likes
By the way, it’s a fairly strong Julia convention to spell types with PascalCase.
rkube
4
I know, but I prefer snake case.