def test_map(): import random random.seed(42) x = arange(2*3*4).reshape(2, 3, 4) b = array(x) # Test all generic map functionality generic.map_suite(x, b)
def test_map(sc): import random random.seed(42) x = arange(2*3*4).reshape(2, 3, 4) b = array(x, sc, axis=0) # Test all map functionality when the base array is split after the first axis generic.map_suite(x, b) # Split the BoltArraySpark after the second axis and rerun the tests b = array(x, sc, axis=(0, 1)) generic.map_suite(x, b) # Split the BoltArraySpark after the third axis (scalar values) and rerun the tests b = array(x, sc, axis=(0, 1, 2)) generic.map_suite(x, b)
def test_map(sc): import random random.seed(42) x = arange(2 * 3 * 4).reshape(2, 3, 4) b = array(x, sc, axis=0) # Test all map functionality when the base array is split after the first axis generic.map_suite(x, b) # Split the BoltArraySpark after the second axis and rerun the tests b = array(x, sc, axis=(0, 1)) generic.map_suite(x, b) # Split the BoltArraySpark after the third axis (scalar values) and rerun the tests b = array(x, sc, axis=(0, 1, 2)) generic.map_suite(x, b)