is_separable¶
- astropy.modeling.is_separable(transform)[源代码]¶
变换输出的可分离性检验。
- 参数
- 转型 :
Model
模型 (复合)模型。
- 转型 :
- 返回
- is_separable恩达雷
具有大小的布尔数组
transform.n_outputs
其中每个元素表示输出是否独立以及可分离变换的结果。
实例
>>> from astropy.modeling.models import Shift, Scale, Rotation2D, Polynomial2D >>> is_separable(Shift(1) & Shift(2) | Scale(1) & Scale(2)) array([ True, True]...) >>> is_separable(Shift(1) & Shift(2) | Rotation2D(2)) array([False, False]...) >>> is_separable(Shift(1) & Shift(2) | Mapping([0, 1, 0, 1]) | Polynomial2D(1) & Polynomial2D(2)) array([False, False]...) >>> is_separable(Shift(1) & Shift(2) | Mapping([0, 1, 0, 1])) array([ True, True, True, True]...)