The DO Loop

Statistical programming in SAS with an emphasis on SAS/IML programs
Programming Tips
Rick Wicklin 0
Define or extract the diagonals of a matrix

Many useful matrices in applied math and statistics have a banded structure. Examples include diagonal matrices, tridiagonal matrices, banded matrices, and Toeplitz matrices. An example of an unsymmetric Toeplitz matrix is shown to the right. Notice that the matrix is constant along each diagonal, including sub- and superdiagonals. Recently, I

1 9 10 11 12 13 169