|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmfc.matrix.AbstractComplex2By2
mfc.matrix.HermitianComplex2By2
A class to represent Hermitian complex
2×2-matrices.
A complex 2×2-matrix is Hermitian if the diagonal
entries are real and the off diagonal entries are complex conjugate to
each other.
| Field Summary |
| Fields inherited from class mfc.matrix.AbstractComplex2By2 |
aIm, aRe, bIm, bRe, cIm, cRe, dIm, dRe, EPS, EPSILON, EPSSQR |
| Constructor Summary | |
HermitianComplex2By2()
Create the identity matrix. |
|
HermitianComplex2By2(double a,
Complex b,
double d)
Create a hermitian matrix with given diagonal elements and given upper right element. |
|
HermitianComplex2By2(double theA,
double theBRe,
double theBIm,
double theD)
Create a hermitian matrix with given diagonal elements and given upper right element. |
|
HermitianComplex2By2(HermitianComplex2By2 m)
Create a matrix with the same data as m. |
|
| Method Summary | |
void |
assign(double a,
Complex b,
double d)
Assign hermitian matrix by diagonal and upper right elements. |
void |
assign(double newA,
double newBRe,
double newBIm,
double newD)
Assign hermitian matrix by diagonal and upper right elements. |
void |
assign(HermitianComplex2By2 s)
assigns this with the prescribed matrix |
void |
assignAdjoinedWith(AbstractComplex2By2 t)
Assign this with t this t*. |
void |
assignConjugateWith(AbstractComplex2By2 t)
Assign this with t this t-1. |
void |
assignLorentzVector(double x0,
double x1,
double x2,
double x3)
Assign hermitian matrix by a Lorentz vector. |
double |
getARe()
Get the value of aRe. |
double |
getDRe()
Get the value of dRe. |
double |
lorentzVectorX0()
Return the x0-component of the Lorentz vector
corresponding to this. |
double |
lorentzVectorX1()
Return the x1-component of the Lorentz vector
corresponding to this. |
double |
lorentzVectorX2()
Return the x2-component of the Lorentz vector
corresponding to this. |
double |
lorentzVectorX3()
Return the x3-component of the Lorentz vector
corresponding to this. |
double |
realDeterminant()
Return the real determinant of this. |
void |
setARe(double v)
Set the value of aRe. |
void |
setB(Complex b)
Set the value of the upper right element. |
void |
setC(Complex c)
Set the value of the lower left element. |
void |
setDRe(double v)
Set the value of dRe. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public HermitianComplex2By2()
public HermitianComplex2By2(HermitianComplex2By2 m)
public HermitianComplex2By2(double theA,
double theBRe,
double theBIm,
double theD)
theA - the upper left entrytheBRe - the real part of the upper right entrytheBIm - the imaginary part of the upper right left entrytheD - the lower right entry
public HermitianComplex2By2(double a,
Complex b,
double d)
a - a double: the real upper left entryb - a Complex: the complex upper right entryd - a double: the real lower right entry| Method Detail |
public double getARe()
public void setARe(double v)
v - Value to assign to aRe.public void setB(Complex b)
setB in class AbstractComplex2By2b - a Complexpublic void setC(Complex c)
setC in class AbstractComplex2By2c - a Complex.public double getDRe()
public void setDRe(double v)
v - Value to assign to dRe.
public void assign(double newA,
double newBRe,
double newBIm,
double newD)
newA - the upper left entrynewBRe - the real part of the upper right entrynewBIm - the imaginary part of the upper right entrynewD - the lower right entry
public void assign(double a,
Complex b,
double d)
a - a double: the real upper left entryb - a Complex: the complex upper right entryd - a double: the real lower right entrypublic void assign(HermitianComplex2By2 s)
public void assignConjugateWith(AbstractComplex2By2 t)
Assign this with t this t-1.
Simply calls AbstractComplex2By2.assignConjugateWith(AbstractComplex2By2).
assignConjugateWith in class AbstractComplex2By2t - an AbstractComplex2By2: the matrix with which to
conjugatepublic void assignAdjoinedWith(AbstractComplex2By2 t)
Assign this with t this t*.
Simply calls AbstractComplex2By2.assignAdjoinedWith(AbstractComplex2By2).
assignAdjoinedWith in class AbstractComplex2By2t - an AbstractComplex2By2: the matrix to adjoin with
public void assignLorentzVector(double x0,
double x1,
double x2,
double x3)
Assign hermitian matrix by a Lorentz vector.
Sets this to
[ x0 - x3 -x1 - i x2 ]
[ ]
[ -x1 + i x2 x0 + x3 ].
Note that the determinant is x02 -
x12 - x22 - x32.
public final double lorentzVectorX0()
x0-component of the Lorentz vector
corresponding to this.
x0assignLorentzVector(double, double, double, double)public final double lorentzVectorX1()
x1-component of the Lorentz vector
corresponding to this.
x1assignLorentzVector(double, double, double, double)public final double lorentzVectorX2()
x2-component of the Lorentz vector
corresponding to this.
x2assignLorentzVector(double, double, double, double)public final double lorentzVectorX3()
x3-component of the Lorentz vector
corresponding to this.
x3assignLorentzVector(double, double, double, double)public double realDeterminant()
Return the real determinant of this.
The determinant of a hermitian matrix is real.
ad - bc
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||