numpy.ma.diag
-
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, seenumpy.diag
for details.See also
numpy.diag
- Equivalent function for ndarrays.
© 2008–2016 NumPy Developers
Licensed under the NumPy License.
https://docs.scipy.org/doc/numpy-1.10.1/reference/generated/numpy.ma.diag.html