#NEWLINE# def test_mat_sequences( self ) : #NEWLINE# #INDENT# lq_mat = self . lq_mat #NEWLINE# x0 = ( np . random . randn ( 2 ) * 25 ) #NEWLINE# ( x_seq , u_seq , w_seq ) = lq_mat . compute_sequence ( x0 ) #NEWLINE# assert_allclose ( np . sum ( u_seq ) , ( 0.95 * np . sum ( x0 ) ) , atol = 0.001 ) #NEWLINE# assert_allclose ( x_seq [ : , ( - 1 ) ] , np . zeros_like ( x0 ) , atol = 0.001 )