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.ma.MaskedArray.sort
numpy.ma.dot
Enter search terms or a module, class or function name.