Commit 4f1362bd authored by Fredrik Bagge Carlson's avatar Fredrik Bagge Carlson
Browse files

rename

parent d90732ab
function toeplitz{T}(c::Array{T},r::Array{T})
nc = length(c)
nr = length(r)
A = zeros(T, nc, nr)
A[:,1] = c
A[1,:] = r
for i in 2:nr
A[2:end,i] = A[1:end-1,i-1]
end
A
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment