This has nothing to do with isa. In julia, a scalar is different from a 1-
element array. Matlab doesn't make that distinction, because in Matlab
_everything_ is an array. Which is much of why Matlab is slow for many things.
--Tim
On Tuesday, February 17, 2015 08:03:12 AM J Luis wrote:
> julia> isa(1.0f0, Float32)
> true
>
> julia> isa([1.0f0], Float32)
> false
>
> julia> isa([1.0f0], Array{Float32})
> true
>
> It means that to know the data type one must first test if the variable is
> scalar or array. Not nice. I find the Matlab equivalent much easier to use.