Export function-like objects

rkube
Mon, 01 May 2023 19:43:59 +0000
General Usage

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?

5 posts - 3 participants