![Converting matrix subscripts to indices](https://blogs.sas.com/content/iml/files/2011/08/t_sub2ind.png)
Suppose that you want to create a matrix in SAS/IML software that has a special structure, such as a tridiagonal matrix. How do you do it? Or suppose that you want to find elements of a matrix A such that A[i,j] satisfies a certain condition. How do you get the