Python | SymPy Permutation.array_form() method Last Updated : 12 Sep, 2023 Comments Improve Suggest changes Like Article Like Report Permutation.array_form() : array_form() is a sympy Python library function that returns the 1 D copy of the augmented array. Syntax : sympy.combinatorics.permutations.Permutation.array_form() Return : copy of the Permutation in argument. Code #1 : array_form() Example Python3 # Python code explaining # SymPy.array_form() # importing SymPy libraries from sympy.combinatorics.partitions import Partition from sympy.combinatorics.permutations import Permutation # Using from sympy.combinatorics.permutations.Permutation.array_form() method # creating Permutation a = Permutation([[2, 0], [3, 1]]) b = Permutation([1, 3, 5, 4, 2, 0]) print ("Permutation a - array form : ", a.array_form) print ("Permutation b - array form : ", b.array_form) Output : Permutation a - array form : [2, 3, 0, 1] Permutation b - array form : [1, 3, 5, 4, 2, 0] Code #2 : array_form() Example - 2D Permutation Python3 # Python code explaining # SymPy.array_form() # importing SymPy libraries from sympy.combinatorics.partitions import Partition from sympy.combinatorics.permutations import Permutation # Using from sympy.combinatorics.permutations.Permutation.array_form() method # creating Permutation a = Permutation([[2, 4, 0], [3, 1, 2], [1, 5, 6]]) print ("Permutation a - array form : ", a.array_form) Output : Permutation a - array form : [3, 2, 4, 5, 0, 6, 1] Comment More infoAdvertise with us Next Article Python | SymPy Permutation.array_form() method N noobestars101 Follow Improve Article Tags : Python SymPy Practice Tags : python Similar Reads Python | Sympy Permutation().array_form method With the help of sympy.combinatorics.Permutation().array_form method, we can get the linear array from multidimensional array or matrix by using sympy.combinatorics.Permutation().array_form method. Syntax : sympy.combinatorics.Permutation().array_form Return : Return an array having single dimension 1 min read Python | SymPy Permutation.cyclic_form() method Permutation.cyclic_form() : cyclic_form() is a sympy Python library function that returns the cyclic notation from the canonical notation, by omitting the singletons. Syntax : sympy.combinatorics.permutations.Permutation.cyclic_form() Return : cyclic notation from the canonical notation Code #1 : cy 1 min read Python | SymPy Permutation.atoms() method Permutation.atoms() : atoms() is a sympy Python library function that returns all the elements that are present in the permutation. Syntax : sympy.combinatorics.permutations.Permutation.atoms() Return : elements of the argumented permutation. Code #1 : atoms() Example Python3 1=1 # Python code expla 1 min read Python | SymPy Permutation.cardinality() method Permutation.cardinality() : cardinality() is a sympy Python library function that returns all the possible number of permutation. Syntax : sympy.combinatorics.permutations.Permutation.cardinality() Return : all the possible number of permutation Code #1 : cardinality() Example Python3 1=1 # Python c 1 min read Python | SymPy Permutation.full_cyclic_form() method Permutation.full_cyclic_form() : full_cyclic_form() is a sympy Python library function that returns the permutation in cyclic form, by including the singletons. Syntax : sympy.combinatorics.permutations.Permutation.full_cyclic_form() Return : permutation in cyclic form Code #1 : full_cyclic_form() E 1 min read Like