Hi all,
I was wondering if this is a julian use of the @generated macro:
type Functor{Symbol} end
# A simple general product-sum operator;
# returns a[1]⊙b[1] ⊕ a[2]⊙b[2] ⊕ ...
@generated function dot{⊕,⊙,T}(::Type{Functor{⊕}}, ::Type{Functor{⊙}},
a::Array{T}, b::Array{T})
return quote
On Mon, Oct 26, 2015 at 4:27 PM, Alireza Nejati wrote:
> Hi all,
>
> I was wondering if this is a julian use of the @generated macro:
>
> type Functor{Symbol} end
>
> # A simple general product-sum operator;
> # returns a[1]⊙b[1] ⊕ a[2]⊙b[2] ⊕ ...
> @generated function