pygsti.tools.matrixmod2.strictly_upper_triangle

pygsti.tools.matrixmod2.strictly_upper_triangle#

strictly_upper_triangle(m)#

Returns a matrix containing the strictly upper triangle of m and zeros elsewhere.

Parameters:

m (numpy.ndarray) – Matrix to operate on.

Return type:

numpy.ndarray