analyzer.sci
Class Permutation
java.lang.Object
|
+--analyzer.sci.Permutation
- public class Permutation
- extends java.lang.Object
A class for representing permuatations. Useful for PIMC.
See Chapter 15 of T. Inui, Y. Tanabe, Y. Onodera, "Group Theory
and Its Applications in Physics" (Springer, Berlin, 1995).
Field Summary |
protected int[] |
cycles
The class (in the group theory sense) this permutation belongs
to, expressed as the number of cycles. |
protected int[] |
perm
Integer representation of the permutation. |
Constructor Summary |
Permutation(int[] permIn)
Constructor. |
Method Summary |
int[] |
getCycles()
Return the cycle length distribution. |
int[] |
getPerm()
Return a copy of the integer representation of the permutation. |
static void |
main(java.lang.String[] args)
|
int |
size()
Return the size of the permutation. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
perm
protected int[] perm
- Integer representation of the permutation.
cycles
protected int[] cycles
- The class (in the group theory sense) this permutation belongs
to, expressed as the number of cycles. For example, the
permuatation (1 3 2 6 4 7 5 8) has two 1-cycles, a 2-cycle and a
4-cycle, so it belongs to class (2 1 0 1 0 0 0 0).
Permutation
public Permutation(int[] permIn)
- Constructor.
size
public int size()
- Return the size of the permutation.
getPerm
public int[] getPerm()
- Return a copy of the integer representation of the permutation.
getCycles
public int[] getCycles()
- Return the cycle length distribution.
main
public static void main(java.lang.String[] args)
Email questions and comments to
shumway@uiuc.edu or nzhong@ncsa.uiuc.edu