I think the ArrayFire.jl (https://github.com/JuliaComputing/ArrayFire.jl)
syntax for matrices (e.g. rand(AFArray{Float64},100,100)) should be adopted
in Base to allow multiple eye commands that return different types:
eye(Diagonal{Float64},10)
eye(SparseMatrix,10) # default to Float?
eye(Matrix{Int},10)
Whether eye(Int,10), eye(Float64,10), etc. get deprecated and what eye(10)
should default to are debatable.
On Tuesday, August 30, 2016 at 6:22:45 AM UTC+10, Christoph Ortner wrote:
>
> Two give my two cents:
>
> I think this is an inconsistency in the design of the standard library.
> * while we have both I and eye available for the Identity matrix,
> * linspace was replaced with a lazy data-structure.
>
> Personally I would like to keep both I and eye; but I also would have
> liked to keep the old linspace behaviour.
>
>
>
>