Skip to content

fill_like default eltype should be the one of the fill value #183

Open
@CarloLucibello

Description

@CarloLucibello

Right now we have the signature

fill_like(x::AbstractArray, val, [element_type=eltype(x)], [dims=size(x)]))

I think it should be

fill_like(x::AbstractArray, val, [element_type=typeof(val)], [dims=size(x)]))

instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions