numpy.tril() in Python

numpy.tril() returns a copy of the array matrix with an element of the lower part of the triangle with respect to k. It returns a copy of array with lower part of triangle and above the kth diagonal zeroed. Syntax: numpy.tril(m,k=0) Parameters: m- number of rows in the array. k-It is optional. Diagonal below which …

numpy.tril() in Python Read More »