MuGen
Multitrait genetics
|
Functions | |
MuGrp | operator+ (const Grp &m1, const Grp &m2) |
Addition operator. More... | |
MuGrp | operator+ (const MuGrp &m1, const Grp &m2) |
Addition operator. More... | |
MuGrp | operator+ (const Grp &m1, const MuGrp &m2) |
Addition operator. More... | |
MuGrp | operator- (const Grp &m1, const Grp &m2) |
Subtraction operator. More... | |
MuGrp | operator- (const MuGrp &m1, const Grp &m2) |
Subtraction operator. More... | |
MuGrp | operator- (const Grp &m1, const MuGrp &m2) |
Subtraction operator. More... | |
Arithmetic operators for Grp type location parameters. The matrices addressed by the fMat() member functions are added. These are essential to build Gibbs samplers with multiple parameters at the same level of hierarchy, such as variable-intercept regressions [gelman07] . However, care must be taken because only certain combinations of objects are compatible. These are
In all other cases, an error is issued and execution is aborted. The number of traits (columns) has to always be the same. Addition is commutative, subtraction is anti-commutative.
Addition operator.
[in] | Grp& | first summand |
[in] | Grp& | second summand |
Addition operator.
[in] | Grp& | first summand |
[in] | MuGrp& | second summand |
Addition operator.
[in] | MuGrp& | first summand |
[in] | Grp& | second summand |
Subtraction operator.
[in] | Grp& | minuend |
[in] | Grp& | subtrahend |
Subtraction operator.
[in] | Grp& | minuend |
[in] | MuGrp& | subtrahend |