Skip to content

Commit

Permalink
feat(matrices): update fielder constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
AnzhiZhang committed Aug 8, 2024
1 parent 5bfc7bc commit ff45115
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/matrices/fiedler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit ff45115

Please sign in to comment.