Skip to content

Commit

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

# constructors
Circulant(n::T) where {T<:Integer} = Circulant(T[1:n;])
Circulant(n::Integer) = Circulant{Int}(n)
Circulant{T}(n::Integer) where {T<:Number} = Circulant(T[1:n;])

# metadata
@properties Circulant [:symmetric, :posdef, :eigen]
Expand Down

0 comments on commit 53b5157

Please sign in to comment.