On this page
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.diagthat takes masked values into account, seenumpy.diagfor details.See also - numpy.diag
- 
       Equivalent function for ndarrays. 
 
© 2005–2020 NumPy Developers
Licensed under the 3-clause BSD License.
 https://numpy.org/doc/1.19/reference/generated/numpy.ma.diag.html