NZMATH  1.2.0 About: NZMATH is a Python based number theory oriented calculation system.   Fossies Dox: NZMATH-1.2.0.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)
nzmath.permute.ExPermute Class Reference

## Public Member Functions

def __init__ (self, dim, value, key=None, flag=False)

def __getitem__ (self, other)

def __mul__ (self, other)

def __rmul__ (self, other)

def __div__ (self, other)

def __rdiv__ (self, other)

def __pow__ (self, other)

def __call__ (self, other)

def setKey (self, key=None)

def getValue (self)

def inverse (self)

def getGroup (self)

def order (self)

def ToNormal (self)

def simplify (self)

def sgn (self)

def permute (self, lists)

def __eq__ (self, other)

def __ne__ (self, other)

def __repr__ (self)

def __str__ (self)

dim

data

key

## Static Private Attributes

def __truediv__ = __div__

## Detailed Description

```This is a class for cyclic type element of permutation group.
Example, (5, [(1, 2), (3, 4)])
This means (1, 2)(3, 4)=[2, 1, 4, 3, 5]
```

Definition at line 305 of file permute.py.

## ◆ __init__()

 def nzmath.permute.ExPermute.__init__ ( self, dim, value, key = `None`, flag = `False` )

Definition at line 313 of file permute.py.

## ◆ __call__()

 def nzmath.permute.ExPermute.__call__ ( self, other )

Definition at line 399 of file permute.py.

## ◆ __div__()

 def nzmath.permute.ExPermute.__div__ ( self, other )

Definition at line 378 of file permute.py.

## ◆ __eq__()

 def nzmath.permute.ExPermute.__eq__ ( self, other )

## ◆ __getitem__()

 def nzmath.permute.ExPermute.__getitem__ ( self, other )

Definition at line 354 of file permute.py.

## ◆ __mul__()

 def nzmath.permute.ExPermute.__mul__ ( self, other )

Definition at line 369 of file permute.py.

## ◆ __ne__()

 def nzmath.permute.ExPermute.__ne__ ( self, other )

Definition at line 551 of file permute.py.

## ◆ __pow__()

 def nzmath.permute.ExPermute.__pow__ ( self, other )

## ◆ __rdiv__()

 def nzmath.permute.ExPermute.__rdiv__ ( self, other )

## ◆ __repr__()

 def nzmath.permute.ExPermute.__repr__ ( self )

Definition at line 554 of file permute.py.

## ◆ __rmul__()

 def nzmath.permute.ExPermute.__rmul__ ( self, other )

Definition at line 375 of file permute.py.

## ◆ __str__()

 def nzmath.permute.ExPermute.__str__ ( self )

Definition at line 557 of file permute.py.

## ◆ getGroup()

 def nzmath.permute.ExPermute.getGroup ( self )

Definition at line 450 of file permute.py.

References nzmath.permute.Permute.key, and nzmath.permute.ExPermute.key.

## ◆ getValue()

 def nzmath.permute.ExPermute.getValue ( self )
```Return value of self.
```

Definition at line 431 of file permute.py.

Referenced by nzmath.permute.ExPermute.__repr__(), and nzmath.permute.ExPermute.__str__().

## ◆ inverse()

 def nzmath.permute.ExPermute.inverse ( self )

## ◆ permute()

 def nzmath.permute.ExPermute.permute ( self, lists )
```permute list following with self permutation

Warning: The method do not check the compatibility of `lists` and self.key (except dict type).
```

Definition at line 509 of file permute.py.

Referenced by nzmath.permute.ExPermute.__call__().

## ◆ setKey()

 def nzmath.permute.ExPermute.setKey ( self, key = `None` )
```Set other key.
The function may be used if you want to permute a different sequence with
the same permutation.
```

Definition at line 402 of file permute.py.

## ◆ sgn()

 def nzmath.permute.ExPermute.sgn ( self )
```This method returns sign for permutation element.

If self is even permutation, that is, self can be written as a composition
of an even number of transpositions, it returns 1. Otherwise,that is, for odd
permutation, it returns -1.
```

Definition at line 495 of file permute.py.

References nzmath.permute.Permute.data, and nzmath.permute.ExPermute.data.

## ◆ simplify()

 def nzmath.permute.ExPermute.simplify ( self )
```This method returns more simple element.
```

Definition at line 489 of file permute.py.

References nzmath.permute.ExPermute.ToNormal().

## ◆ ToNormal()

 def nzmath.permute.ExPermute.ToNormal ( self )
```This method returns normal type element of permutation group.
```

Definition at line 463 of file permute.py.

Referenced by nzmath.permute.ExPermute.simplify().

## ◆ __truediv__

 def nzmath.permute.ExPermute.__truediv__ = __div__
staticprivate

Definition at line 381 of file permute.py.

## ◆ dim

 nzmath.permute.ExPermute.dim

## ◆ key

The documentation for this class was generated from the following file: