I am trying following , and this works okay!
using Symbolics, ToeplitzMatrices
N =250
a = Symbolics.variables(:a, 0:N);
b= [1; (1:N).*a[2:end]]
A = SymmetricToeplitz(a)
F_expr = A*b;
However, the code fails if i increase the code to N=280
using Symbolics, ToeplitzMatrices
N =280
a = Symbolics.variables(:a, 0:N);
b= [1; (1:N).*a[2:end]]
A = SymmetricToeplitz(a)
F_expr = A*b;
ERROR: MethodError: no method matching plan_fft!(::Vector{Complex{Num}}, ::UnitRange{Int64})
Closest candidates are:
plan_fft!(::StridedArray{T, N}, ::Any; flags, timelimit, num_threads) where {T<:Union{ComplexF64, ComplexF32}, N}
@ FFTW ~/.julia/packages/FFTW/HfEjB/src/fft.jl:786
plan_fft!(::AbstractArray; kws...)
@ AbstractFFTs ~/.julia/packages/AbstractFFTs/hJ0Fz/src/definitions.jl:65
Stacktrace:
[1] plan_fft!(x::Vector{Complex{Num}}; kws::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ AbstractFFTs ~/.julia/packages/AbstractFFTs/hJ0Fz/src/definitions.jl:65
[2] plan_fft!(x::Vector{Complex{Num}})
@ AbstractFFTs ~/.julia/packages/AbstractFFTs/hJ0Fz/src/definitions.jl:65
[3] factorize(A::SymmetricToeplitz{Num, Vector{Num}})
@ ToeplitzMatrices ~/.julia/packages/ToeplitzMatrices/5gW1c/src/linearalgebra.jl:150
[4] mul!(y::Vector{Num}, A::SymmetricToeplitz{Num, Vector{Num}}, x::Vector{Num}, α::Bool, β::Bool)
@ ToeplitzMatrices ~/.julia/packages/ToeplitzMatrices/5gW1c/src/linearalgebra.jl:37
[5] mul!
@ ~/software/julia-1.9.2/share/julia/stdlib/v1.9/LinearAlgebra/src/matmul.jl:276 [inlined]
[6] *(A::SymmetricToeplitz{Num, Vector{Num}}, x::Vector{Num})
@ LinearAlgebra ~/software/julia-1.9.2/share/julia/stdlib/v1.9/LinearAlgebra/src/matmul.jl:56
[7] top-level scope
@ REPL[36]:1
I have also posted these issues on Symbolics.jl and ToeplitzMatrices.jl
- Symbolic (symmetric-toepltiz)matrix-vector multiplication doesn't work for higher dimensions of matrix · Issue #939 · JuliaSymbolics/Symbolics.jl · GitHub
- Symbolic (symmetric-toepltiz)matrix-vector multiplication doesn't work for higher dimensions of matrix · Issue #109 · JuliaLinearAlgebra/ToeplitzMatrices.jl · GitHub