Julia: no method `copy(::Missing)`

Created on 30 May 2019  ·  1Comment  ·  Source: JuliaLang/julia

ERROR: MethodError: no method matching copy(::Missing)

I suppose this can be fixed by adding copy(::Missing) = missing somewhere.

I discovered this when trying to use "empty" sparse matrices -- non-zero patterns with no values, like sparse(transpose(similar(sprand(Bool,3,3,0.2), Missing)))

missing data sparse

Most helpful comment

Rather, I think the sparse code should not be calling copy here; it should not require the elements to have copy methods.

>All comments

Rather, I think the sparse code should not be calling copy here; it should not require the elements to have copy methods.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wilburtownsend picture wilburtownsend  ·  3Comments

sbromberger picture sbromberger  ·  3Comments

helgee picture helgee  ·  3Comments

yurivish picture yurivish  ·  3Comments

StefanKarpinski picture StefanKarpinski  ·  3Comments