- cupyx.scipy.linalg.tri(N, M=None, k=0, dtype=None)#
M) matrix filled with ones at and below the
k-th diagonal. The matrix has
A[i,j] == 1for
i <= j + k.
N (int) – The size of the first dimension of the matrix.
M (int, optional) – The size of the second dimension of the matrix. If
M = Nis assumed.
k (int, optional) – Number of subdiagonal below which matrix is filled with ones.
k = 0is the main diagonal,
k < 0subdiagonal and
k > 0superdiagonal.
dtype (dtype, optional) – Data type of the matrix.
- Return type