|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--GRFactor | +--GRPreFactor
Class representing a factor
(-1)^exp*(2*f_0+1)^(exp_0/2)+...+(2*f_k+1)^(exp_k/2)
with exp
a lineair combination of labels with
positive, integer coefficients, f_0...f_k labels and exp_0..exp_k
integer powers.
GenRecoupCoeff
,
Edge
,
GRFactor
,
GRVisitor
Constructor Summary | |
GRPreFactor()
Constructs a new GRPreFactor. |
|
GRPreFactor(int nroflabels)
Constructs a GRPreFactor with nroflabels expected
total number of labels |
|
GRPreFactor(int nroflabels,
int factor,
java.lang.String j)
Constructs a new GRPreFactor representing (-1)^(factor*j) with nroflabels
expected number of labels. |
|
GRPreFactor(int nroflabels,
int factor,
java.lang.String j,
java.lang.String a,
int exp)
Constructs a new GRPreFactor representing (-1)^(factor*j)*(2*a+1)^(exp/2) with
nroflabels expected number of labels. |
|
GRPreFactor(int factor,
java.lang.String j)
Constructs a new GRPreFactor representing (-1)^(factor*j) . |
|
GRPreFactor(int nroflabels,
java.lang.String[] j)
Constructs a new GRPreFactor representing (-1)^(j[0]+..+j[j.length-1]) with
nroflabels expected number of labels.. |
|
GRPreFactor(int nroflabels,
java.lang.String[] a,
int exp)
Constructs a new GRPreFactor representing ((2*a[0]+1)* ... |
|
GRPreFactor(int nroflabels,
java.lang.String[] a,
int[] exp)
Constructs a new GRPreFactor representing (2*a[0]+1)^exp[0]* ... |
|
GRPreFactor(int nroflabels,
java.lang.String a,
int exp)
Constructs a new GRPreFactor representing (2*a+1)^(exp/2) with nroflabels
expected number of labels. |
|
GRPreFactor(java.lang.String[] j)
Constructs a new GRPreFactor representing (-1)^(j[0]+..+j[j.length-1]) . |
|
GRPreFactor(java.lang.String[] a,
int exp)
Constructs a new GRPreFactor representing ((2*a[0]+1)* ... |
|
GRPreFactor(java.lang.String[] a,
int[] exp)
Constructs a new GRPreFactor representing (2*a[0]+1)^(exp[0]/2)* ... |
|
GRPreFactor(java.lang.String a,
int exp)
Constructs a new GRPreFactor representing (2*a+1)^(exp/2) . |
Method Summary | |
void |
accept(GRVisitor v)
Implementation of the Visitor pattern. |
void |
append(GRPreFactor gpf)
Appends the GRPreFactor object |
void |
appendExp(int factor,
java.lang.String j)
Appends a factor (-1)^(factor*j) to this
GRPreFactor. |
void |
appendExp(int factor,
java.lang.String[] j)
Appends a factor (-1)^(factor*j[0]+...+factor*j[j.length-1]) to
this GRPreFactor. |
void |
appendExp(java.lang.String[] j)
Appends a factor (-1)^(j[0]+..+j[j.length-1]) to this
GRPreFactor. |
void |
appendFactor(java.lang.String a)
Appends a factor (2*a+1) to this GRPreFactor. |
void |
appendFactor(java.lang.String[] a)
Appends a factor (2*a[0]+1)* ... |
void |
appendFactor(java.lang.String[] a,
int exp)
Appends a factor ((2*a[0]+1)* ... |
void |
appendFactor(java.lang.String[] a,
int[] exp)
Appends a factor (2*a[0]+1)^(exp[0]/2)* ... |
void |
appendFactor(java.lang.String a,
int exp)
Appends a factor (2*a+1)^(exp/2) to this GRPreFactor. |
java.lang.Object |
clone()
Returns a clone of this object, immutable objects are not cloned. |
boolean |
containsLabel(java.lang.String label)
True if this GRPreFactor contains this label, false otherwise. |
boolean |
empty()
Returns true if this GRPreFactor represents 1, i.e. |
java.util.Iterator |
expCoeffs()
Returns an Iterator of the coeffs in the exponent of (-1). |
boolean |
expEmpty()
Returns true if this GRPreFactor represents (-1)^0*factors. |
java.util.Iterator |
expLabels()
Returns an Iterator over the labels in the exponent of (-1). |
int |
expSize()
Returns the number of labels present in the exponent of (-1). |
boolean |
factorsEmpty()
Returns true if this GRPreFactor represents (-1)^exp*1. |
java.util.Iterator |
factorsExps()
Returns an Iterator over the exponents in the factors (2*label+1)^(exp/2). |
java.util.Iterator |
factorsLabels()
Returns an Iterator of the labels in the factors (2*label+1)^(exp/2). |
int |
factorsSize()
Returns the number of factors in the product. |
java.lang.String |
toString()
A String representation of this GRPreFactor. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public GRPreFactor()
public GRPreFactor(int nroflabels)
nroflabels
expected
total number of labels
nroflabels
- the expected number of labels.public GRPreFactor(java.lang.String[] j)
(-1)^(j[0]+..+j[j.length-1])
.
j
- array of labels of the exponent of the phase factorpublic GRPreFactor(int factor, java.lang.String j)
(-1)^(factor*j)
.
factor
- the factor of the specified labelj
- the label of the exponent of the phase factorpublic GRPreFactor(int nroflabels, java.lang.String[] j)
(-1)^(j[0]+..+j[j.length-1])
with
nroflabels
expected number of labels..
nroflabels
- the expected number of labelsj
- array of labels of the exponent of the phase factorpublic GRPreFactor(int nroflabels, int factor, java.lang.String j)
(-1)^(factor*j)
with nroflabels
expected number of labels.
nroflabels
- the expected number of labelsfactor
- the factor of the specified labelj
- the label of the exponent of the phase factorpublic GRPreFactor(java.lang.String a, int exp)
(2*a+1)^(exp/2)
.
a
- label of the weightexp
- 2*exponent of the weightpublic GRPreFactor(int nroflabels, java.lang.String a, int exp)
(2*a+1)^(exp/2)
with nroflabels
expected number of labels.
nroflabels
- the expected number of labelsa
- label of the weightexp
- 2*exponent of the weightpublic GRPreFactor(java.lang.String[] a, int exp)
((2*a[0]+1)* ... *
(2a[a.length-1]+1))^(exp/2)
.
a
- array of labels of the weightsexp
- 2*exponent of the weightspublic GRPreFactor(int nroflabels, java.lang.String[] a, int exp)
((2*a[0]+1)* ... *
(2a[a.length-1]+1))^(exp/2)
with nroflabels
expected number of labels.
nroflabels
- the expected number of labelsa
- arrary of labels of the weightsexp
- 2*exponent of the weightspublic GRPreFactor(java.lang.String[] a, int[] exp)
(2*a[0]+1)^(exp[0]/2)* ... *
(2a[a.length-1]+1)^(exp[a,length-1]/2)
.
a
- array of labels of the weightsexp
- array of 2*exponents of the weightspublic GRPreFactor(int nroflabels, java.lang.String[] a, int[] exp)
(2*a[0]+1)^exp[0]* ... *
(2a[a.length-1]+1))^(exp[a.length-1]/2)
with
nroflabels
expected number of labels.
nroflabels
- the expected number of labelsa
- array of labels of the weightsexp
- array of 2*exponents of the weightspublic GRPreFactor(int nroflabels, int factor, java.lang.String j, java.lang.String a, int exp)
(-1)^(factor*j)*(2*a+1)^(exp/2)
with
nroflabels
expected number of labels.
nroflabels
- the expected number of labelsfactor
- factor of the label of the exponent of the phase factorj
- label of the exponent of the phase factora
- label of the weightexp
- 2*exponent of the weightMethod Detail |
public boolean containsLabel(java.lang.String label)
containsLabel
in class GRFactor
label
- the label to be checked
public void appendExp(java.lang.String[] j)
(-1)^(j[0]+..+j[j.length-1])
to this
GRPreFactor.
j
- array of labels to be appended to the exponent of the phase
factorpublic void appendExp(int factor, java.lang.String j)
(-1)^(factor*j)
to this
GRPreFactor.
factor
- the factor of the label to be appended to the exponent
of the phase factorj
- label to be appended to the exponent of the phase factorpublic void appendExp(int factor, java.lang.String[] j)
(-1)^(factor*j[0]+...+factor*j[j.length-1])
to
this GRPreFactor.
factor
- the factor of the labels to be appended to the exponent
of the phase factorsj
- array of labels to be appended to the exponent of the phase
factorpublic void append(GRPreFactor gpf)
gpf
- the GRPreFactor
to be appendedpublic boolean expEmpty()
public int expSize()
public void appendFactor(java.lang.String a, int exp)
(2*a+1)^(exp/2)
to this GRPreFactor.
a
- the label of the weight to be appendedexp
- 2*exponent of the weight to be appendedpublic void appendFactor(java.lang.String a)
(2*a+1)
to this GRPreFactor.
a
- the label of the weight to be appendedpublic void appendFactor(java.lang.String[] a, int exp)
((2*a[0]+1)* ... *
(2a[a.length-1]+1))^(exp/2)
to this GRPreFactor.
a
- array of labels of the weights to be appendedexp
- 2*exponent of the weights to be appendedpublic void appendFactor(java.lang.String[] a, int[] exp)
(2*a[0]+1)^(exp[0]/2)* ... *
(2a[a.length-1]+1)^(exp[a.length-1]/2)
to this GRPreFactor.
a
- array of labels of the weights to be appendedexp
- array of 2*exponents of the weights to be appendedpublic void appendFactor(java.lang.String[] a)
(2*a[0]+1)* ... *
(2a[a.length-1]+1)
to this GRPreFactor.
a
- array of labels of the weights to be appendedpublic boolean factorsEmpty()
public int factorsSize()
public boolean empty()
public java.util.Iterator expLabels()
expCoeffs()
.
expCoeffs()
public java.util.Iterator expCoeffs()
expLabels()
.
expLabels()
public java.util.Iterator factorsLabels()
factorsExps()
.
factorsExps()
public java.util.Iterator factorsExps()
factorsLabels()
.
factorsLabels()
public java.lang.String toString()
toString
in class GRFactor
public java.lang.Object clone()
clone
in class GRFactor
public void accept(GRVisitor v)
accept
in class GRFactor
v
- the GRVisitor
to be acceptedGRVisitor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |