is_separable

astropy.modeling.is_separable(transform)[ソース]

出力の可区分性テストを変換する.

パラメータ
変換する.Model模型

(複合)モデル。

返品
is_separableNdarray

大きさのブール配列 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]...)