IGLib
1.5
The IGLib base library EXTENDED - with other lilbraries and applications.
|
Represents the state of a spinor. More...
Public Member Functions | |
SpinState (double j, double m) | |
Instantiates a new SpinState with the given spin and magnetic quantum numbers. More... | |
SpinState (Spin s, double m) | |
Instantiates a new SpinState with the given spin and magnetic quantum number. More... | |
override bool | Equals (object obj) |
Determines whether the given object represents the same spin state. More... | |
override int | GetHashCode () |
Computes a hash function for the spin state. More... | |
override string | ToString () |
Produces a string representation of the spin state. More... | |
Static Public Member Functions | |
static bool | operator== (SpinState s1, SpinState s2) |
Determines whether two spin states are equal. More... | |
static bool | operator!= (SpinState s1, SpinState s2) |
Determines whether two spin states are unequal. More... | |
Properties | |
double | J [get] |
Gets the spin value of the spin state. More... | |
double | M [get] |
Gets the magnetic substate value of the spin state. More... | |
Spin | Representation [get] |
Gets the spinor representation to which the spin state belongs. More... | |
Static Private Member Functions | |
static bool | Equals (SpinState s1, SpinState s2) |
static string | SpinString (int twoJ) |
Private Attributes | |
Spin | spin |
int | twoM |
Represents the state of a spinor.
|
inline |
Instantiates a new SpinState with the given spin and magnetic quantum numbers.
j | The spin number. |
m | The magnetic number. |
|
inline |
Instantiates a new SpinState with the given spin and magnetic quantum number.
s | The spin. |
m | The magnetic quantum number. |
References Meta.Numerics.Spin.SpinState.spin, and Meta.Numerics.Spin.SpinState.twoM.
Determines whether two spin states are equal.
s1 | The first spin state. |
s2 | The second spin state. |
Determines whether two spin states are unequal.
s1 | The first spin state. |
s2 | The second spin state. |
|
inline |
Determines whether the given object represents the same spin state.
obj | The object to compare. |
|
inline |
Computes a hash function for the spin state.
|
inline |
Produces a string representation of the spin state.
References Meta.Numerics.Spin.Spin.ToString().
|
inlinestaticprivate |
|
private |
Referenced by Meta.Numerics.Spin.SpinState.Equals().
|
private |
Referenced by Meta.Numerics.Spin.SpinState.Equals().
|
get |
Gets the spin value of the spin state.
Referenced by Test.SpinTest.ClebschGordonOrthonormalityJM(), Test.SpinTest.SixJThreeJRelation(), Test.SpinTest.ThreeJExchangeSymmetry(), Test.SpinTest.ThreeJRacahSymmetry(), and Test.SpinTest.ThreeJRecursion().
|
get |
Gets the magnetic substate value of the spin state.
Referenced by Test.SpinTest.ClebschGordonOrthonormalityJM(), Test.SpinTest.ClebschGordonOrthonormalityMM(), Test.SpinTest.SixJThreeJRelation(), Test.SpinTest.ThreeJExchangeSymmetry(), Test.SpinTest.ThreeJRacahSymmetry(), and Test.SpinTest.ThreeJRecursion().
|
get |
Gets the spinor representation to which the spin state belongs.