Yes, I think that's what I meant. But, coming from Python, this whole
typing thing is alien to me. Thanks for your help.
On Tuesday, June 24, 2014 8:15:45 AM UTC-6, Ivar Nesje wrote:
>
> Do you mean
>
> *{T}(a::Array{T,2}, b) = whatever
>
> ?
>
> Ivar
>
> kl. 15:10:23 UTC+2 tirsdag 24. juni 2014 skrev Rick Muller følgende:
>>
>> I want to create a function signature for the *(a,b) operator where a is
>> a 2x2 matrix. Can I do this?
>>
>> *(a::Array{??,2},b) = whatever
>>
>> ??? is anything than can multiply a Complex vector. Do I have to
>> explicitly promote this to Complex, in which case I guess it would be
>>
>> *(a::Array{Complex,(2,2)},b::Array{Complex,1}) = whatever
>>
>> Thanks in advance for any help you can offer.
>>
>