diff --git a/src/ToeplitzMatrices.jl b/src/ToeplitzMatrices.jl index 2447b8c..9a2a92c 100644 --- a/src/ToeplitzMatrices.jl +++ b/src/ToeplitzMatrices.jl @@ -99,8 +99,6 @@ struct ToeplitzFactorization{T,A<:AbstractToeplitz{T},S<:Number,P<:Plan{S}} <: F tmp::Vector{S} dft::P end -Base.size(T::ToeplitzFactorization) = (s = size(T.dft,1); (s, s)) -Base.size(T::ToeplitzFactorization, i::Integer) = size(T)[i] include("toeplitz.jl") include("special.jl") diff --git a/src/special.jl b/src/special.jl index 3fc572c..9195903 100644 --- a/src/special.jl +++ b/src/special.jl @@ -257,3 +257,7 @@ end function Base.replace_in_print_matrix(A::LowerTriangularToeplitz, i::Integer, j::Integer, s::AbstractString) i >= j ? s : Base.replace_with_centered_mark(s) end + +# size for factorize +size(T::ToeplitzFactorization{<:Any, <:Circulant}) = (s = size(T.dft,1); (s, s)) +size(T::ToeplitzFactorization{<:Any, <:Circulant}, i::Integer) = size(T)[i]