From 950e29f76f6d420a4233f9a2420f219bc9c74646 Mon Sep 17 00:00:00 2001 From: Tianyi Pu <44583944+putianyi889@users.noreply.github.com> Date: Mon, 8 Jan 2024 04:37:53 +0000 Subject: [PATCH] generalise eltype (#119) --- src/ToeplitzMatrices.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ToeplitzMatrices.jl b/src/ToeplitzMatrices.jl index 1b920c9..9a2a92c 100644 --- a/src/ToeplitzMatrices.jl +++ b/src/ToeplitzMatrices.jl @@ -34,7 +34,7 @@ end include("iterativeLinearSolvers.jl") # Abstract -abstract type AbstractToeplitz{T<:Number} <: AbstractMatrix{T} end +abstract type AbstractToeplitz{T} <: AbstractMatrix{T} end size(A::AbstractToeplitz) = (length(A.vc),length(A.vr)) @inline _vr(A::AbstractToeplitz) = A.vr