powered by
Generates a matrix index to create a square triangular matrix.
.getDiagonalIndex(n)
a locigal matrix of size n x n
n
an integer indicating the size of the resulting index matrix.