A skyline matrix is a form of a square, banded (and typically symmetric) matrix that reduces the storage requirement of a matrix due to it's banded nature.

For symmetrical matrices (with zero based indexing):
For unsymmetrical matrices (with zero based indexing):


Examples:

For a symmetric 6 by 6 matrix A with a bandwidth of 3 turns into the 6 by 3 matrix A_{skyline}.
Matrix A in original format:


Matrix A_{skyline} in skyline format:




For an unsymmetrical 6 by 6 matrix B with left and right band widths of 2 turns into the 6 by 3 matrix B_{skyline}.
Matrix B in original format:


Matrix B_{skyline} in skyline format: