def test_p4_func(): from groupy.gfunc.p4func_array import P4FuncArray import groupy.garray.C4_array as c4a v = np.random.randn(2, 6, 4, 5, 5) f = P4FuncArray(v=v) g = c4a.rand(size=(1, )) h = c4a.rand(size=(1, )) check_associative(g, h, f) check_identity(c4a, f) check_invertible(g, f) check_i2g_g2i_invertible(f)
def test_p4_func(): from groupy.gfunc.p4func_array import P4FuncArray import groupy.garray.C4_array as c4a v = np.random.randn(2, 6, 4, 5, 5) f = P4FuncArray(v=v) g = c4a.rand(size=(1,)) h = c4a.rand(size=(1,)) check_associative(g, h, f) check_identity(c4a, f) check_invertible(g, f) check_i2g_g2i_invertible(f)
def test_z2_func(): from groupy.gfunc.z2func_array import Z2FuncArray import groupy.garray.C4_array as c4a import groupy.garray.C4_array as d4a v = np.random.randn(2, 6, 5, 5) f = Z2FuncArray(v=v) g = c4a.rand(size=(1, )) h = c4a.rand(size=(1, )) check_associative(g, h, f) check_identity(c4a, f) check_invertible(g, f) check_i2g_g2i_invertible(f) g = d4a.rand(size=(1, )) h = d4a.rand(size=(1, )) check_associative(g, h, f) check_identity(d4a, f) check_invertible(g, f) check_i2g_g2i_invertible(f)