numpy.ma.diag(v, k=0)
[source]
Extract a diagonal or construct a diagonal array.
This function is the equivalent of numpy.diag
that takes masked values into account, see numpy.diag
for details.
See also
numpy.diag
© 2005–2019 NumPy Developers
Licensed under the 3-clause BSD License.
https://docs.scipy.org/doc/numpy-1.17.0/reference/generated/numpy.ma.diag.html