FillArrays.jl icon indicating copy to clipboard operation
FillArrays.jl copied to clipboard

additional constructors for Zeros and Ones

Open CarloLucibello opened this issue 4 years ago • 1 comments

It would be nice to have Zeros(eltype, dims) and Ones(eltype, dims), in analogy to zeros and ones functions

CarloLucibello avatar May 02 '20 07:05 CarloLucibello

What do these do that Zeros{eltype}(dims) / Ones{eltype}(dims) do not?

In principle it's not a good idea to have synonyms in code, as it makes find-and-replace more difficult, for example.

dlfivefifty avatar May 02 '20 07:05 dlfivefifty