The leading dimension (
LDA) in lapack refers to the ‘distance in memory
between elements of two consecutive columns which have the same row index’
(
source).
Thus, in general, LDA is the same as N, but if you’re working with a
submatrix A(91:100, 1:100), you’ll set N = 10 but LDA = 100.