numpy.ma.MaskedArray.imag#
property
- property ma.MaskedArray.imag#
掩码数组的虚部.
此属性是对此
MaskedArray
虚部的视图.参见
示例
>>> import numpy as np >>> x = np.ma.array([1+1.j, -2j, 3.45+1.6j], mask=[False, True, False]) >>> x.imag masked_array(data=[1.0, --, 1.6], mask=[False, True, False], fill_value=1e+20)