![]() |
Chaste
Release::2024.1
|
#include <cfloat>
Include dependency graph for MathsCustomFunctions.hpp:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| class | CompareDoubles |
Functions | |
| double | SmallPow (double x, unsigned exponent) |
| unsigned | SmallPow (unsigned x, unsigned exponent) |
| bool | Divides (double smallerNumber, double largerNumber) |
| unsigned | CeilDivide (unsigned numerator, unsigned denominator) |
| double | Signum (double value) |
| double | SafeDivide (double numerator, double divisor) |
This file contains some utility functions and a small class for dealing with floating point numbers.
Definition in file MathsCustomFunctions.hpp.
| numerator | the numerator |
| denominator | the denominator |
Definition at line 137 of file MathsCustomFunctions.cpp.
| smallerNumber | the smaller |
| largerNumber | the larger |
Definition at line 114 of file MathsCustomFunctions.cpp.
Referenced by HeartConfig::CheckTimeSteps().
| numerator | the number to be divided |
| divisor | the number to divide by |
Definition at line 160 of file MathsCustomFunctions.cpp.
Referenced by CompareDoubles::Difference(), and CompareDoubles::WithinRelativeTolerance().
| value | the argument value |
Definition at line 150 of file MathsCustomFunctions.cpp.
Replacement "pow" function.
| x | number to be raised to a small power |
| exponent | small integer exponent |
Definition at line 41 of file MathsCustomFunctions.cpp.
Referenced by SpaceConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >::Abscissa(), TysonNovak2001OdeSystem::AnalyticJacobian(), NhsContractionModel::CalculateT0(), CuboidMeshConstructor< ELEMENT_DIM, SPACE_DIM >::Construct(), AbstractConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >::DisplayRun(), TysonNovak2001OdeSystem::EvaluateYDerivatives(), PseudoEcgCalculator< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::GetIntegrand(), VertexMesh< DIM, DIM >::GetLocalIndexForElementEdgeClosestToPoint(), SpaceConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >::GetSpaceStep(), and NhsContractionModel::NhsContractionModel().
Replacement "pow" function for unsigned integer values
| x | number to be raised to a small power |
| exponent | small integer exponent |
Definition at line 77 of file MathsCustomFunctions.cpp.