Documentation of 'cc.redberry.core.groups.permutations.PermutationOneLineShort' Java class
PermutationOneLineShort
cc.redberry.core.groups.permutations

Class PermutationOneLineShort

    • Constructor Summary

      Constructors 
      Constructor and Description
      PermutationOneLineShort(boolean antisymmetry, short... permutation)
      Creates permutation with antisymmetry property from given array in one-line notation and boolean value of antisymmetry (true means antisymmetry)
    • Constructor Detail

      • PermutationOneLineShort

        public PermutationOneLineShort(boolean antisymmetry,
                                       short... permutation)
        Creates permutation with antisymmetry property from given array in one-line notation and boolean value of antisymmetry (true means antisymmetry)
        Parameters:
        antisymmetry - antisymmetry (true - antisymmetry, false - symmetry)
        permutation - permutation in one-line notation
        Throws:
        java.lang.IllegalArgumentException - if permutation is inconsistent with one-line notation
        java.lang.IllegalArgumentException - if antisymmetry is true and permutation order is odd
    • Method Detail

      • length

        public int length()
        Description copied from interface: Permutation
        Returns length of the underlying array (at low-level).
        Specified by:
        length in interface Permutation
        Returns:
        length of the underlying array (at low-level)
      • antisymmetry

        public boolean antisymmetry()
        Description copied from interface: Permutation
        Returns true if this permutation is antisymmetry and false otherwise.
        Specified by:
        antisymmetry in interface Permutation
        Returns:
        true if this permutation is antisymmetry and false otherwise
      • toSymmetry

        public Permutation toSymmetry()
        Description copied from interface: Permutation
        If this is antisymmetry, then converts this permutation to symmetry.
        Specified by:
        toSymmetry in interface Permutation
        Returns:
        same permutation with false antisymmetry
      • negate

        public PermutationOneLineShort negate()
        Description copied from interface: Permutation
        Changes sign (symmetry to antisymmetry and vice versa) of this permutation
        Specified by:
        negate in interface Permutation
        Returns:
        same permutation with changed sign
      • oneLine

        public int[] oneLine()
        Description copied from interface: Permutation
        Returns array that represents this permutation in one-line notation.
        Specified by:
        oneLine in interface Permutation
        Returns:
        array that represents this permutation in one-line notation
      • oneLineImmutable

        public IntArray oneLineImmutable()
        Description copied from interface: Permutation
        Returns immutable array that represents this permutation in one-line notation.
        Specified by:
        oneLineImmutable in interface Permutation
        Returns:
        immutable array that represents this permutation in one-line notation
      • cycles

        public int[][] cycles()
        Description copied from interface: Permutation
        Returns an array of disjoint cycles that represent this permutation.
        Specified by:
        cycles in interface Permutation
        Returns:
        array of disjoint cycles that represent this permutation
      • newIndexOf

        public int newIndexOf(int i)
        Description copied from interface: Permutation
        Returns image of specified point under the action of this permutation.
        Specified by:
        newIndexOf in interface Permutation
        Parameters:
        i - point
        Returns:
        image of specified point under the action of this permutation
      • imageOf

        public int imageOf(int i)
        Description copied from interface: Permutation
        Returns image of specified point under the action of this permutation. This method is absolutely same as Permutation.newIndexOf(int) without any difference.
        Specified by:
        imageOf in interface Permutation
        Parameters:
        i - point
        Returns:
        image of specified point under the action of this permutation
      • imageOf

        public int[] imageOf(int[] set)
        Description copied from interface: Permutation
        Returns image of specified set of points under the action of this permutation.
        Specified by:
        imageOf in interface Permutation
        Parameters:
        set - set
        Returns:
        image of specified set under this permutation
      • permute

        public int[] permute(int[] array)
        Description copied from interface: Permutation
        Permutes array and returns the result.
        Specified by:
        permute in interface Permutation
        Parameters:
        array - array
        Returns:
        permuted array
      • permute

        public char[] permute(char[] array)
        Description copied from interface: Permutation
        Permutes array and returns the result.
        Specified by:
        permute in interface Permutation
        Parameters:
        array - array
        Returns:
        permuted array
      • permute

        public <T> T[] permute(T[] array)
        Description copied from interface: Permutation
        Permutes array and returns the result.
        Specified by:
        permute in interface Permutation
        Parameters:
        array - array
        Returns:
        permuted array
      • permute

        public <T> java.util.List<T> permute(java.util.List<T> set)
        Description copied from interface: Permutation
        Permutes list and returns the result.
        Specified by:
        permute in interface Permutation
        Parameters:
        set - array
        Returns:
        permuted array
      • newIndexOfUnderInverse

        public int newIndexOfUnderInverse(int i)
        Description copied from interface: Permutation
        Returns image of specified point under the action of inverse of this permutation.
        Specified by:
        newIndexOfUnderInverse in interface Permutation
        Parameters:
        i - point
        Returns:
        image of specified point under the action of inverse of this permutation
      • conjugate

        public Permutation conjugate(Permutation p)
        Description copied from interface: Permutation
        Returns conjugation of specified element by this permutation, i.e. this^-1 * p * this
        Specified by:
        conjugate in interface Permutation
        Parameters:
        p - permutation
        Returns:
        conjugation of specified element by this permutation, i.e. this^-1 * p * this
      • commutator

        public Permutation commutator(Permutation p)
        Description copied from interface: Permutation
        Returns commutator of this and specified permutation, i.e. this^-1 * p^-1 * this * p.
        Specified by:
        commutator in interface Permutation
        Parameters:
        p - permutation
        Returns:
        commutator of this and specified permutation, i.e. this^-1 * p^-1 * this * p
      • composition

        public Permutation composition(Permutation other)
        Description copied from interface: Permutation
        Returns the result of this * other. Applying the resulting permutation is equivalent to applying other after this.
        Specified by:
        composition in interface Permutation
        Parameters:
        other - other permutation
        Returns:
        the result of this * other
      • composition

        public Permutation composition(Permutation a,
                                       Permutation b)
        Description copied from interface: Permutation
        Returns the result of this * a * b. Applying the resulting permutation is equivalent to applying b after a after this.
        Specified by:
        composition in interface Permutation
        Parameters:
        a - other permutation
        b - other permutation
        Returns:
        the result of this * a * b
      • composition

        public Permutation composition(Permutation a,
                                       Permutation b,
                                       Permutation c)
        Description copied from interface: Permutation
        Returns the result of this * a * b * c. Applying the resulting permutation is equivalent to applying c after b after a after this.
        Specified by:
        composition in interface Permutation
        Parameters:
        a - other permutation
        b - other permutation
        c - other permutation
        Returns:
        the result of this * a * b * c
      • compositionWithInverse

        public Permutation compositionWithInverse(Permutation other)
        Description copied from interface: Permutation
        Returns the result of this * other.inverse(). Applying the resulting permutation is equivalent to applying other.inverse() after this.
        Specified by:
        compositionWithInverse in interface Permutation
        Parameters:
        other - other permutation
        Returns:
        the result of this * other.inverse()
      • inverse

        public Permutation inverse()
        Description copied from interface: Permutation
        Returns the inverse permutation of this.
        Specified by:
        inverse in interface Permutation
        Returns:
        the inverse permutation of this
      • isIdentity

        public boolean isIdentity()
        Description copied from interface: Permutation
        Returns true if this represents identity permutation
        Specified by:
        isIdentity in interface Permutation
        Returns:
        true if this is identity permutation
      • getIdentity

        public Permutation getIdentity()
        Description copied from interface: Permutation
        Returns the identity permutation with the degree of this permutation
        Specified by:
        getIdentity in interface Permutation
        Returns:
        identity permutation with the degree of this permutation
      • orderIsOdd

        public boolean orderIsOdd()
        Description copied from interface: Permutation
        Returns true if order of this permutation is odd and false otherwise.
        Specified by:
        orderIsOdd in interface Permutation
        Returns:
        true if order of this permutation is odd and false otherwise
      • degree

        public int degree()
        Description copied from interface: Permutation
        Returns a largest moved point plus one.
        Specified by:
        degree in interface Permutation
        Returns:
        largest moved point plus one
      • pow

        public Permutation pow(int exponent)
        Description copied from interface: Permutation
        Returns this raised to the specified exponent.
        Specified by:
        pow in interface Permutation
        Parameters:
        exponent - exponent
        Returns:
        this raised to the specified exponent
      • equals

        public boolean equals(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • parity

        public int parity()
        Description copied from interface: Permutation
        Returns parity of this permutations.
        Specified by:
        parity in interface Permutation
        Returns:
        parity of this permutations
      • moveRight

        public Permutation moveRight(int size)
        Description copied from interface: Permutation
        Inserts identity action on the set [0, 1, ..., size - 1]; as result the degree of resulting permutation will be size + degree of this.
        Specified by:
        moveRight in interface Permutation
        Parameters:
        size - size of the set
      • lengthsOfCycles

        public int[] lengthsOfCycles()
        Description copied from interface: Permutation
        Returns lengths of cycles in disjoint cycle notation.
        Specified by:
        lengthsOfCycles in interface Permutation
        Returns:
        lengths of cycles in disjoint cycle notation
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toStringOneLine

        public java.lang.String toStringOneLine()
        Description copied from interface: Permutation
        Returns a string representation of this permutation in one-line notation.
        Specified by:
        toStringOneLine in interface Permutation
        Returns:
        a string representation of this permutation in one-line notation
      • toStringCycles

        public java.lang.String toStringCycles()
        Description copied from interface: Permutation
        Returns a string representation of this permutation in disjoint cycles notation.
        Specified by:
        toStringCycles in interface Permutation
        Returns:
        a string representation of this permutation in disjoint cycles notation
      • compareTo

        public int compareTo(Permutation t)
        Specified by:
        compareTo in interface java.lang.Comparable<Permutation>

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.