<s> import numpy as np <EOL> from parakeet . testing_helpers import expect , run_local_tests <EOL> int_vec = np . array ( [ <NUM_LIT:2> , <NUM_LIT:3> ] ) <EOL> int_mat = np . array ( [ int_vec , int_vec ] ) <EOL> bool_vec = np . array ( [ True , True ] ) <EOL> bool_mat = np . array ( [ bool_vec , bool_vec ] ) <EOL> float32_vec = np . array ( [ <NUM_LIT:1.0> , <NUM_LIT> ] , dtype = '<STR_LIT>' ) <EOL> float32_mat = np . array ( [ float32_vec , float32_vec ] ) <EOL> float64_vec = np . array ( [ <NUM_LIT:1.0> , <NUM_LIT> ] ) <EOL> float64_mat = np . array ( [ float64_vec , float64_vec ] ) <EOL> arrays = [ int_vec , bool_vec , float32_vec , float64_mat ] <EOL> def test_logaddexp2_bool_bool_vec ( ) : <EOL> expect ( np . logaddexp2 , [ bool_vec , bool_vec ] , np . logaddexp2 ( bool_vec , bool_vec ) ) <EOL> def test_logaddexp2_bool_bool_mat ( ) : <EOL> expect ( np . logaddexp2 , [ bool_mat , bool_mat ] , np . logaddexp2 ( bool_mat , bool_mat ) ) <EOL> def test_logaddexp2_int_bool_vec ( ) : <EOL> expect ( np . logaddexp2 , [ int_vec , bool_vec ] , np . logaddexp2 ( int_vec , bool_vec ) ) <EOL> def test_logaddexp2_int_bool_mat ( ) : <EOL> expect ( np . logaddexp2 , [ int_mat , bool_mat ] , np . logaddexp2 ( int_mat , bool_mat ) ) <EOL> def test_logaddexp2_int_int_vec ( ) : <EOL> expect ( np . logaddexp2 , [ int_vec , int_vec ] , np . logaddexp2 ( int_vec , int_vec ) ) <EOL> def test_logaddexp2_int_int_mat ( ) : <EOL> expect ( np . logaddexp2 , [ int_mat , int_mat ] , np . logaddexp2 ( int_mat , int_mat ) ) <EOL> def test_logaddexp2_int_float32_vec ( ) : <EOL> expect ( np . logaddexp2 , [ int_vec , float32_vec ] , np . logaddexp2 ( int_vec , float32_vec ) ) <EOL> def test_logaddexp2_int_float32_mat ( ) : <EOL> expect ( np . logaddexp2 , [ int_mat , float32_mat ] , np . logaddexp2 ( int_mat , float32_mat ) ) <EOL> def test_logaddexp2_int_float64_vec ( ) : <EOL> expect ( np . logaddexp2 , [ int_vec , float64_vec ] , np . logaddexp2 ( int_vec , float64_vec ) ) <EOL> def test_logaddexp2_int_float64_mat ( ) : <EOL> expect ( np . logaddexp2 , [ int_mat , float64_mat ] , np . logaddexp2 ( int_mat , float64_mat ) ) <EOL> def test_logaddexp2_float32_float64_vec ( ) : <EOL> expect ( np . logaddexp2 , [ float32_vec , float64_vec ] , np . logaddexp2 ( float32_vec , float64_vec ) ) <EOL> def test_logaddexp2_float32_float64_mat ( ) : <EOL> expect ( np . logaddexp2 , [ float32_mat , float64_mat ] , np . logaddexp2 ( float32_mat , float64_mat ) ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> run_local_tests ( ) </s>
