@@ -474,10 +474,19 @@ def test_operator_conversion(self):
474474 np .testing .assert_array_almost_equal (sys_add .omega , chk_add .omega )
475475 np .testing .assert_array_almost_equal (sys_add .fresp , chk_add .fresp )
476476
477+ # Test broadcasting with SISO system
478+ sys_tf_mimo = TransferFunction ([1 ], [1 , 0 ]) * np .eye (2 )
479+ frd_tf_mimo = frd (sys_tf_mimo , np .logspace (- 1 , 1 , 10 ))
480+ result = FrequencyResponseData .__rmul__ (frd_tf , frd_tf_mimo )
481+ expected = frd (sys_tf_mimo * sys_tf , np .logspace (- 1 , 1 , 10 ))
482+ np .testing .assert_array_almost_equal (expected .omega , result .omega )
483+ np .testing .assert_array_almost_equal (expected .fresp , result .fresp )
484+
477485 # Input/output mismatch size mismatch in rmul
478486 sys1 = frd (ct .rss (2 , 2 , 2 ), np .logspace (- 1 , 1 , 10 ))
487+ sys2 = frd (ct .rss (3 , 3 , 3 ), np .logspace (- 1 , 1 , 10 ))
479488 with pytest .raises (ValueError ):
480- FrequencyResponseData .__rmul__ (frd_2 , sys1 )
489+ FrequencyResponseData .__rmul__ (sys2 , sys1 )
481490
482491 # Make sure conversion of something random generates exception
483492 with pytest .raises (TypeError ):
0 commit comments