From ff451151f9af5182cfc3d7957dd9b61a1027e50a Mon Sep 17 00:00:00 2001 From: Andy Zhang <37402126+AnzhiZhang@users.noreply.github.com> Date: Thu, 8 Aug 2024 17:49:19 +0100 Subject: [PATCH] feat(matrices): update fielder constructors --- src/matrices/fiedler.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]