On Tuesday, October 21, 2014 6:41:24 PM UTC-4, David van Leeuwen wrote:
> I replaced the `γ = broadcast()` with the lines below that. No globals,
> but perhaps the field type gmm.μ is spoiling things. I am not sure if this
> is a case of an abstractly typed field
>
> type GMM{T<:FloatingPoint}
> ...
> μ::Array{T}
> ...
> end
>
> Should I have written GMM{T2} in the declaration of stats()?
>
The declaration of stats() is fine, but μ is abstract because it's missing
the number of dimensions. It should be Array{T,2} or something like that,
or else GMM should be parametrized on the number of dimensions.
Simon