numpy.exceptions.ComplexWarning#

exception exceptions.ComplexWarning[source]#

當將複數 dtype 轉換為實數 dtype 時發出的警告。

依照目前的實作,將複數轉換為實數會捨棄其虛部,但此行為可能非使用者所期望。