cupyx.scipy.linalg.tri#
- cupyx.scipy.linalg.tri(N, M=None, k=0, dtype=None)[source]#
Construct (
N
,M
) matrix filled with ones at and below thek
-th diagonal. The matrix hasA[i,j] == 1
fori <= j + k
.- Parameters:
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
is None,M = N
is assumed.k (int, optional) – Number of subdiagonal below which matrix is filled with ones.
k = 0
is the main diagonal,k < 0
subdiagonal andk > 0
superdiagonal.dtype (dtype, optional) – Data type of the matrix.
- Returns:
Tri matrix.
- Return type:
See also