@@ -151,9 +151,9 @@ def test_nonlinear_iosys(self):
151151
152152 # Create a nonlinear system with the same dynamics
153153 nlupd = lambda t , x , u , params : \
154- np .reshape (linsys .A * np .reshape (x , (- 1 , 1 )) + linsys .B * u , (- 1 ,))
154+ np .reshape (np . dot ( linsys .A , np .reshape (x , (- 1 , 1 ))) + np . dot ( linsys .B , u ) , (- 1 ,))
155155 nlout = lambda t , x , u , params : \
156- np .reshape (linsys .C * np .reshape (x , (- 1 , 1 )) + linsys .D * u , (- 1 ,))
156+ np .reshape (np . dot ( linsys .C , np .reshape (x , (- 1 , 1 ))) + np . dot ( linsys .D , u ) , (- 1 ,))
157157 nlsys = ios .NonlinearIOSystem (nlupd , nlout )
158158
159159 # Make sure that simulations also line up
@@ -747,8 +747,8 @@ def test_named_signals(self):
747747 + np .dot (self .mimo_linsys1 .B , np .reshape (u , (- 1 , 1 )))
748748 ).reshape (- 1 ,),
749749 outfcn = lambda t , x , u , params : np .array (
750- self .mimo_linsys1 .C * np .reshape (x , (- 1 , 1 )) \
751- + self .mimo_linsys1 .D * np .reshape (u , (- 1 , 1 ))
750+ np . dot ( self .mimo_linsys1 .C , np .reshape (x , (- 1 , 1 ) )) \
751+ + np . dot ( self .mimo_linsys1 .D , np .reshape (u , (- 1 , 1 ) ))
752752 ).reshape (- 1 ,),
753753 inputs = ('u[0]' , 'u[1]' ),
754754 outputs = ('y[0]' , 'y[1]' ),
0 commit comments