#NEWLINE# def testScalarB( self ) : #NEWLINE# #INDENT# A = array ( [ [ 1.0 , 2.0 ] ] ) #NEWLINE# b = 3.0 #NEWLINE# x = lsmr ( A , b ) [ 0 ] #NEWLINE# assert_almost_equal ( norm ( ( A . dot ( x ) - b ) ) , 0 )