#NEWLINE# def test_falker( self ) : #NEWLINE# #INDENT# 'Test matrices giving some Nan generalized eigen values.' #NEWLINE# M = diag ( array ( [ 1 , 0 , 3 ] ) ) #NEWLINE# K = array ( ( [ 2 , ( - 1 ) , ( - 1 ) ] , [ ( - 1 ) , 2 , ( - 1 ) ] , [ ( - 1 ) , ( - 1 ) , 2 ] ) ) #NEWLINE# D = array ( ( [ 1 , ( - 1 ) , 0 ] , [ ( - 1 ) , 1 , 0 ] , [ 0 , 0 , 0 ] ) ) #NEWLINE# Z = zeros ( ( 3 , 3 ) ) #NEWLINE# I = identity ( 3 ) #NEWLINE# A = bmat ( [ [ I , Z ] , [ Z , ( - K ) ] ] ) #NEWLINE# B = bmat ( [ [ Z , self ] , [ M , D ] ] ) #NEWLINE# olderr = np . seterr ( all = 'ignore' ) #NEWLINE# try : #NEWLINE# #INDENT# self . _check_gen_eig ( A , B ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# np . seterr ( ** olderr )