Chaste
Release::3.4
|
#include <cfloat>
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) |
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.
Referenced by Hdf5DataWriter::CalculateChunkDims(), and Hdf5DataWriter::CalculateNumberOfChunks().
smallerNumber | the smaller |
largerNumber | the larger |
Definition at line 114 of file MathsCustomFunctions.cpp.
Referenced by HeartConfig::CheckTimeSteps(), SingleTraceOutputModifier::ProcessSolutionAtTimeStep(), and TimeStepper::TimeStepper().
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(), VertexCryptBoundaryForce< DIM >::AddForceContribution(), TysonNovak2001OdeSystem::AnalyticJacobian(), NhsContractionModel::CalculateT0(), CuboidMeshConstructor< ELEMENT_DIM, SPACE_DIM >::Construct(), AbstractConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >::Converge(), CylindricalHoneycombMeshGenerator::CylindricalHoneycombMeshGenerator(), AbstractConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >::DisplayRun(), TysonNovak2001OdeSystem::EvaluateYDerivatives(), NhsContractionModel::EvaluateYDerivatives(), PseudoEcgCalculator< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::GetIntegrand(), VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetLocalIndexForElementEdgeClosestToPoint(), SpaceConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >::GetSpaceStep(), HoneycombMeshGenerator::HoneycombMeshGenerator(), NhsContractionModel::NhsContractionModel(), NodeBasedCellPopulation< DIM >::NonBlockingSendCellsToNeighbourProcesses(), SmallPow(), VanLeeuwen2009WntSwatCellCycleOdeSystem::VanLeeuwen2009WntSwatCellCycleOdeSystem(), and StreeterFibreGenerator< SPACE_DIM >::Visit().
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.
References SmallPow().