You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently vr and vc can be modified so that their first entries are different:
julia> T=Toeplitz(rand(3,3))
3×3 Toeplitz{Float64, Vector{Float64}, Vector{Float64}}:0.4104440.8938440.05385590.4778950.4104440.8938440.8534330.4778950.410444
julia> T.vr[1]=0;
julia> T
3×3 Toeplitz{Float64, Vector{Float64}, Vector{Float64}}:0.4104440.8938440.05385590.4778950.4104440.8938440.8534330.4778950.410444
julia>Toeplitz(T)
ERROR: First element of the vectors must be the same
It's difficult to keep track of this constraint. How about defining Toeplitz as something like
It ensures that the top-left entry is inambiguous.
It's easier to implement some methods, like isone, istriu, etc.
Cons:
Getting the full first row/column needs concatenation and is therefore slower. This doesn't affect conversions since they wouldn't need the full row/column.
A lot of codes need to be rewritten.
mutable is needed in order to change the first entry.
The text was updated successfully, but these errors were encountered:
Currently
vr
andvc
can be modified so that their first entries are different:It's difficult to keep track of this constraint. How about defining Toeplitz as something like
Pros:
ToeplitzMatrices.jl/src/special.jl
Lines 98 to 99 in c3ac898
isone
,istriu
, etc.Cons:
mutable
is needed in order to change the first entry.The text was updated successfully, but these errors were encountered: