CYCLUS
|
Functions | |
CompMap | Add (const CompMap &v1, const CompMap &v2) |
bool | AllPositive (const CompMap &v) |
bool | AlmostEq (const CompMap &v1, const CompMap &v2, double threshold) |
void | ApplyThreshold (CompMap *v, double threshold) |
void | Normalize (CompMap *v, double val=1.0) |
CompMap | Sub (const CompMap &v1, const CompMap &v2) |
double | Sum (const CompMap &v1) |
bool | ValidNucs (const CompMap &v) |
Contains functions for performing fundamental operations on CompMap's.
Does component-wise subtraction of the nuclide quantities of v1 and v2 and returns the result.
No normalization is done. Example:
Definition at line 18 of file comp_math.cc.
Returns true if all nuclides in v have quantities greater than or equal to zero.
Definition at line 83 of file comp_math.cc.
Returns true if all nuclides of v1 and v2 are the same within threshold.
No normalization is performed.
Definition at line 93 of file comp_math.cc.
All nuclides with quantities below threshold will have their quantity set to zero.
Definition at line 45 of file comp_math.cc.
The sum of quantities of all nuclides of v is normalized to val.
Definition at line 63 of file comp_math.cc.
Does component-wise subtraction of the nuclide quantities of v1 and v2 and returns the result.
No normalization is done.
Definition at line 27 of file comp_math.cc.
Sums the quantities of all nuclides without normalization.
Definition at line 36 of file comp_math.cc.
Returns true if all nuclide keys in v are valid.
Definition at line 73 of file comp_math.cc.