Skip to content

Missing promotions in Tridiagonal and SymTridiagonal constructors #982

Closed
JuliaLang/julia
#48536
@stevengj

Description

@stevengj

This is a suboptimal experience:

julia> using LinearAlgebra

julia> SymTridiagonal([1,2,3],[4,5.0])
ERROR: MethodError: no method matching SymTridiagonal(::Vector{Int64}, ::Vector{Float64})

Should be as easy as adding a constructor that does promotion?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions