I need to create numerous symmetric Toeplitz matrices from different beginning 1-dimensional arrays. It is straight forward to do with DO loops, but want to know if it can be done efficiently with intrinsic functions in 90/95. The problem is:
Given n numbers, x1, x2, ..., xn, form an n by n array x such that x(1,1:n) = x1, ..., xn; x(i,i) = x1; and x(i,j) = x(j,i).
Given n numbers, x1, x2, ..., xn, form an n by n array x such that x(1,1:n) = x1, ..., xn; x(i,i) = x1; and x(i,j) = x(j,i).