Geant4
10.02.p01
|
#include <cmath>
#include <float.h>
#include "ptwXY.h"
Go to the source code of this file.
Functions | |
static double | ptwXY_mod2 (double v, double m, int pythonMod) |
static nfu_status | ptwXY_mul2_s_ptwXY (ptwXYPoints *n, ptwXYPoints *ptwXY1, ptwXYPoints *ptwXY2, double x1, double y1, double x2, double y2, int level) |
static nfu_status | ptwXY_div_s_ptwXY (ptwXYPoints *n, ptwXYPoints *ptwXY1, ptwXYPoints *ptwXY2, double x1, double y1, double x2, double y2, int level, int isNAN1, int isNAN2) |
static ptwXYPoints * | ptwXY_div_ptwXY_forFlats (ptwXYPoints *ptwXY1, ptwXYPoints *ptwXY2, nfu_status *status, int safeDivide) |
static nfu_status | ptwXY_getValueAtX_ignore_XOutsideDomainError (ptwXYPoints *ptwXY1, double x, double *y) |
nfu_status | ptwXY_slopeOffset (ptwXYPoints *ptwXY, double slope, double offset) |
nfu_status | ptwXY_add_double (ptwXYPoints *ptwXY, double value) |
nfu_status | ptwXY_sub_doubleFrom (ptwXYPoints *ptwXY, double value) |
nfu_status | ptwXY_sub_fromDouble (ptwXYPoints *ptwXY, double value) |
nfu_status | ptwXY_mul_double (ptwXYPoints *ptwXY, double value) |
nfu_status | ptwXY_div_doubleFrom (ptwXYPoints *ptwXY, double value) |
nfu_status | ptwXY_div_fromDouble (ptwXYPoints *ptwXY, double value) |
nfu_status | ptwXY_mod (ptwXYPoints *ptwXY, double m, int pythonMod) |
ptwXYPoints * | ptwXY_binary_ptwXY (ptwXYPoints *ptwXY1, ptwXYPoints *ptwXY2, double v1, double v2, double v1v2, nfu_status *status) |
ptwXYPoints * | ptwXY_add_ptwXY (ptwXYPoints *ptwXY1, ptwXYPoints *ptwXY2, nfu_status *status) |
ptwXYPoints * | ptwXY_sub_ptwXY (ptwXYPoints *ptwXY1, ptwXYPoints *ptwXY2, nfu_status *status) |
ptwXYPoints * | ptwXY_mul_ptwXY (ptwXYPoints *ptwXY1, ptwXYPoints *ptwXY2, nfu_status *status) |
ptwXYPoints * | ptwXY_mul2_ptwXY (ptwXYPoints *ptwXY1, ptwXYPoints *ptwXY2, nfu_status *status) |
ptwXYPoints * | ptwXY_div_ptwXY (ptwXYPoints *ptwXY1, ptwXYPoints *ptwXY2, nfu_status *status, int safeDivide) |
nfu_status ptwXY_add_double | ( | ptwXYPoints * | ptwXY, |
double | value | ||
) |
Definition at line 40 of file ptwXY_binaryOperators.cc.
References ptwXY_slopeOffset().
Referenced by MCGIDI_angularEnergy_parsePointwiseFromTOM(), MCGIDI_energyAngular_linear_parseFromTOM(), and MCGIDI_LLNL_angularEnergy_parsePointwiseFromTOM().
ptwXYPoints* ptwXY_add_ptwXY | ( | ptwXYPoints * | ptwXY1, |
ptwXYPoints * | ptwXY2, | ||
nfu_status * | status | ||
) |
Definition at line 138 of file ptwXY_binaryOperators.cc.
References ptwXY_binary_ptwXY(), and ptwXY_clone().
Referenced by MCGIDI_target_heated_read(), and ptwXY_unitbaseInterpolate().
ptwXYPoints* ptwXY_binary_ptwXY | ( | ptwXYPoints * | ptwXY1, |
ptwXYPoints * | ptwXY2, | ||
double | v1, | ||
double | v2, | ||
double | v1v2, | ||
nfu_status * | status | ||
) |
Definition at line 108 of file ptwXY_binaryOperators.cc.
References n, ptwXY_areDomainsMutual(), ptwXY_free(), ptwXY_getValueAtX_ignore_XOutsideDomainError(), and ptwXY_union().
Referenced by ptwXY_add_ptwXY(), ptwXY_mul_ptwXY(), and ptwXY_sub_ptwXY().
nfu_status ptwXY_div_doubleFrom | ( | ptwXYPoints * | ptwXY, |
double | value | ||
) |
Definition at line 44 of file ptwXY_binaryOperators.cc.
References ptwXY_slopeOffset().
nfu_status ptwXY_div_fromDouble | ( | ptwXYPoints * | ptwXY, |
double | value | ||
) |
Definition at line 53 of file ptwXY_binaryOperators.cc.
References ptwXY_getNonOverflowLength().
ptwXYPoints* ptwXY_div_ptwXY | ( | ptwXYPoints * | ptwXY1, |
ptwXYPoints * | ptwXY2, | ||
nfu_status * | status, | ||
int | safeDivide | ||
) |
Definition at line 288 of file ptwXY_binaryOperators.cc.
References n, nfu_getNAN(), nfu_isNAN(), ptwXY_areDomainsMutual(), ptwXY_div_ptwXY_forFlats(), ptwXY_div_s_ptwXY(), ptwXY_free(), ptwXY_getSlopeAtX(), ptwXY_getValueAtX(), ptwXY_getValueAtX_ignore_XOutsideDomainError(), ptwXY_setValueAtX(), ptwXY_simpleCoalescePoints(), ptwXY_union(), and ptwXY_update_biSectionMax().
|
static |
Definition at line 480 of file ptwXY_binaryOperators.cc.
References n, ptwXY_free(), ptwXY_getValueAtX_ignore_XOutsideDomainError(), and ptwXY_union().
Referenced by ptwXY_div_ptwXY().
|
static |
Definition at line 432 of file ptwXY_binaryOperators.cc.
References a1, a2, DBL_EPSILON, ptwXY_getValueAtX(), ptwXY_getValueAtX_ignore_XOutsideDomainError(), ptwXY_setValueAtX(), and x.
Referenced by ptwXY_div_ptwXY().
|
static |
Definition at line 512 of file ptwXY_binaryOperators.cc.
References ptwXY_getValueAtX().
Referenced by ptwXY_binary_ptwXY(), ptwXY_div_ptwXY(), ptwXY_div_ptwXY_forFlats(), ptwXY_div_s_ptwXY(), ptwXY_mul2_ptwXY(), and ptwXY_mul2_s_ptwXY().
nfu_status ptwXY_mod | ( | ptwXYPoints * | ptwXY, |
double | m, | ||
int | pythonMod | ||
) |
Definition at line 76 of file ptwXY_binaryOperators.cc.
References ptwXY_getNonOverflowLength(), and ptwXY_mod2().
|
static |
Definition at line 92 of file ptwXY_binaryOperators.cc.
Referenced by ptwXY_mod().
ptwXYPoints* ptwXY_mul2_ptwXY | ( | ptwXYPoints * | ptwXY1, |
ptwXYPoints * | ptwXY2, | ||
nfu_status * | status | ||
) |
Definition at line 187 of file ptwXY_binaryOperators.cc.
References n, ptwXY_free(), ptwXY_getValueAtX_ignore_XOutsideDomainError(), ptwXY_mul2_s_ptwXY(), ptwXY_mul_ptwXY(), ptwXY_setValueAtX(), ptwXY_simpleCoalescePoints(), ptwXY_update_biSectionMax(), and x.
|
static |
Definition at line 251 of file ptwXY_binaryOperators.cc.
References a1, a2, DBL_EPSILON, ptwXY_getValueAtX_ignore_XOutsideDomainError(), ptwXY_setValueAtX(), and x.
Referenced by ptwXY_mul2_ptwXY().
nfu_status ptwXY_mul_double | ( | ptwXYPoints * | ptwXY, |
double | value | ||
) |
Definition at line 43 of file ptwXY_binaryOperators.cc.
References ptwXY_slopeOffset().
ptwXYPoints* ptwXY_mul_ptwXY | ( | ptwXYPoints * | ptwXY1, |
ptwXYPoints * | ptwXY2, | ||
nfu_status * | status | ||
) |
Definition at line 171 of file ptwXY_binaryOperators.cc.
References ptwXY_binary_ptwXY(), and ptwXY_clone().
Referenced by ptwXY_mul2_ptwXY().
nfu_status ptwXY_slopeOffset | ( | ptwXYPoints * | ptwXY, |
double | slope, | ||
double | offset | ||
) |
Definition at line 25 of file ptwXY_binaryOperators.cc.
References ptwXY_getNonOverflowLength().
Referenced by ptwXY_add_double(), ptwXY_div_doubleFrom(), ptwXY_mul_double(), ptwXY_sub_doubleFrom(), and ptwXY_sub_fromDouble().
nfu_status ptwXY_sub_doubleFrom | ( | ptwXYPoints * | ptwXY, |
double | value | ||
) |
Definition at line 41 of file ptwXY_binaryOperators.cc.
References ptwXY_slopeOffset().
nfu_status ptwXY_sub_fromDouble | ( | ptwXYPoints * | ptwXY, |
double | value | ||
) |
Definition at line 42 of file ptwXY_binaryOperators.cc.
References ptwXY_slopeOffset().
ptwXYPoints* ptwXY_sub_ptwXY | ( | ptwXYPoints * | ptwXY1, |
ptwXYPoints * | ptwXY2, | ||
nfu_status * | status | ||
) |
Definition at line 154 of file ptwXY_binaryOperators.cc.
References ptwXY_binary_ptwXY(), ptwXY_clone(), ptwXY_free(), and ptwXY_neg().