MagP64¶
-
class
MagP64¶ Abstract type representing magnetization type chosen for cavity messages.
- Note
- The
MagP64type allows fast executions with inexact outcomes by neglecting alltanhoperations.
Public Functions
-
MagP64()¶ Default constructor.
-
MagP64(const double &x)¶ Constructor with value.
- Note
- In MagP64 the value is equal to the mag.
- Parameters
x: magnetization
-
~MagP64()¶ Default destructor.
-
MagP64
operator%(const MagP64 &m)¶ Overload operator.
Add magnetization ( (m1 + m2) / (1 + m1*m2) ) with clamp.
-
MagP64
operator+(const MagP64 &m)¶ Overload operator.
Just a simple addition of the mag values.
- Parameters
m: MagP64 object
-
MagP64
operator/(const double &x)¶ Overload operator.
Just a simple division as (mag / x)
- Parameters
x: double value
-
double
operator*(const double &x)¶ Overload operator.
Just a simple product as (mag * x)
- Parameters
x: double value
-
MagP64
operator^(const MagP64 &m)¶ Overload operator.
Combine two mags as (mag * mag)
- Parameters
m: MagP64 object
Public Members
-
double
mag¶ Magnetization.