Skip to content

Commit

Permalink
feat(matrices): update hankel constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
AnzhiZhang committed Aug 9, 2024
1 parent a5dbb7d commit b2b41da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/matrices/hankel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ struct Hankel{T<:Number} <: AbstractMatrix{T}
end

# constructors
Hankel(n::T) where {T<:Integer} = Hankel(T[1:n;])
Hankel(n::Integer) = Hankel{Int}(n)
Hankel{T}(n::Integer) where {T<:Number} = Hankel(T[1:n;])
Hankel(v::AbstractVector{T}) where {T} = Hankel(v, T[])

# metadata
Expand Down

0 comments on commit b2b41da

Please sign in to comment.