Skip to content

Commit

Permalink
Limit factorization size method to Circulant (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
jishnub authored Jan 25, 2024
1 parent 135d562 commit 131933a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/ToeplitzMatrices.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
4 changes: 4 additions & 0 deletions src/special.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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]

0 comments on commit 131933a

Please sign in to comment.