diff --git a/src/matrices/fiedler.jl b/src/matrices/fiedler.jl index 78fcbbe..7aa09a3 100644 --- a/src/matrices/fiedler.jl +++ b/src/matrices/fiedler.jl @@ -25,7 +25,8 @@ struct Fiedler{T<:Number} <: AbstractMatrix{T} end # constructors -Fiedler(n::T) where {T<:Integer} = Fiedler(T[1:n;]) +Fiedler(n::Integer) = Fiedler{Int}(n) +Fiedler{T}(n::Integer) where {T<:Number} = Fiedler(T[1:n;]) # metadata @properties Fiedler [:inverse, :symmetric, :eigen]