Return an array with ones on and below the diagonal and zeros elsewhere.
If k is provided, it specifies the sub-diagonal on and below which the array is filled with ones. k=0 is the main diagonal, k<0 is below it, and k>0 is above it.
k
k=0
k<0
k>0
Optional
Return an array with ones on and below the diagonal and zeros elsewhere.
If
kis provided, it specifies the sub-diagonal on and below which the array is filled with ones.k=0is the main diagonal,k<0is below it, andk>0is above it.