Skip to content

type piracy of diagm #472

@stevengj

Description

@stevengj

This method is type piracy:

function LinearAlgebra.diagm(m, n, kv::Pair{<:Integer,<:AbstractThunk}...)
return diagm(m, n, (k => unthunk(v) for (k, v) in kv)...)
end

In particular, it is inadvertently adding a fallback diagm(m::Any, n::Any) definition. e.g. this leads to odd error messages as in this discourse thread.

Metadata

Metadata

Assignees

Labels

LinearOperatorsFor issues relating to defining linear operators on AbstractDifferentialsbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions