#NEWLINE# def test_ticket_1645( self ) : #NEWLINE# #INDENT# for dtype in DTYPES : #NEWLINE# #INDENT# a = np . zeros ( ( 300 , 2 ) , dtype = dtype ) #NEWLINE# ( gerqf , ) = get_lapack_funcs ( [ 'gerqf' ] , [ a ] ) #NEWLINE# assert_raises ( Exception , gerqf , a , lwork = 2 ) #NEWLINE# ( rq , tau , work , info ) = gerqf ( a ) #NEWLINE# if ( dtype in REAL_DTYPES ) : #NEWLINE# #INDENT# ( orgrq , ) = get_lapack_funcs ( [ 'orgrq' ] , [ a ] ) #NEWLINE# assert_raises ( Exception , orgrq , rq [ ( - 2 ) : ] , tau , lwork = 1 ) #NEWLINE# orgrq ( rq [ ( - 2 ) : ] , tau , lwork = 2 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( dtype in COMPLEX_DTYPES ) : #NEWLINE# #INDENT# ( ungrq , ) = get_lapack_funcs ( [ 'ungrq' ] , [ a ] ) #NEWLINE# assert_raises ( Exception , ungrq , rq [ ( - 2 ) : ] , tau , lwork = 1 ) #NEWLINE# ungrq ( rq [ ( - 2 ) : ] , tau , lwork = 2 )