From 53b5157f2693131c512efbd75478777ff240d142 Mon Sep 17 00:00:00 2001 From: Andy Zhang <37402126+AnzhiZhang@users.noreply.github.com> Date: Thu, 8 Aug 2024 12:06:37 +0100 Subject: [PATCH] feat(matrices): update circulant constructors --- src/matrices/circulant.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/matrices/circulant.jl b/src/matrices/circulant.jl index 3993908..736381a 100644 --- a/src/matrices/circulant.jl +++ b/src/matrices/circulant.jl @@ -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]