I have the following defined,
homogenize(x) = push(x,one(eltype(x)))
mixed_matvec_multiplication(A::AbstractArray,x::AbstractVector) = A*homogenize(x)
⊛(A,x) = mixed_matvec_multiplication(A,x)
I can’t seem to export it from my module.
I have the following defined,
homogenize(x) = push(x,one(eltype(x)))
mixed_matvec_multiplication(A::AbstractArray,x::AbstractVector) = A*homogenize(x)
⊛(A,x) = mixed_matvec_multiplication(A,x)
I can’t seem to export it from my module.
It seems to work just fine with export
:
julia> module A
export ⊛
⊛(x, y) = x + y
end
Main.A
julia> using .A
julia> 1 ⊛ 2
3
it was a coding error on my part. Thanks!