#NEWLINE# def test_float_array( self ) : #NEWLINE# #INDENT# values = np . array ( [ np . nan , 1 , 2 , 0 , np . nan , 0 , 1 , 2 , 1 , np . nan ] ) #NEWLINE# rvalues = np . array ( [ 2 , np . nan , 2 , 3 , np . nan , 0 , 1 , 5 , 2 , np . nan ] ) #NEWLINE# for kind in [ 'integer' , 'block' ] : #NEWLINE# #INDENT# a = SparseArray ( values , kind = kind ) #NEWLINE# b = SparseArray ( rvalues , kind = kind ) #NEWLINE# self . _check_numeric_ops ( a , b , values , rvalues ) #NEWLINE# self . _check_numeric_ops ( a , ( b * 0 ) , values , ( rvalues * 0 ) ) #NEWLINE# a = SparseArray ( values , kind = kind , fill_value = 0 ) #NEWLINE# b = SparseArray ( rvalues , kind = kind ) #NEWLINE# self . _check_numeric_ops ( a , b , values , rvalues ) #NEWLINE# a = SparseArray ( values , kind = kind , fill_value = 0 ) #NEWLINE# b = SparseArray ( rvalues , kind = kind , fill_value = 0 ) #NEWLINE# self . _check_numeric_ops ( a , b , values , rvalues ) #NEWLINE# a = SparseArray ( values , kind = kind , fill_value = 1 ) #NEWLINE# b = SparseArray ( rvalues , kind = kind , fill_value = 2 ) #NEWLINE# self . _check_numeric_ops ( a , b , values , rvalues )