def test_constructors(): int_d = 10 # unnamed 1-irrep vector v1 = Vector(int_d) check_dense_vec(v1, int_d) # named 1-irrep vector v2 = Vector("v2", int_d) check_dense_vec(v2, int_d, "v2")
def test_clone(): dim = Dimension([1, 2, 3]) vec = Vector(dim) copy = vec.clone() assert copy.dimpi() == dim
def test_constructors_w_symmetry(name, dim): v = Vector(name, dim) check_block_vec(v, dim.n(), dim, name)