CFL
|
![]() |
Classes | |
class | cfl::Function |
Concrete class for a one-dimensional function. More... | |
class | cfl::IFunction |
Interface for a one-dimensional function. More... | |
Functions | |
Function | cfl::abs (const Function &rF) |
Function | cfl::exp (const Function &rF) |
Function | cfl::log (const Function &rF) |
Function | cfl::max (const Function &rF, const Function &rG) |
Function | cfl::max (double dV, const Function &rF) |
Function | cfl::max (const Function &rF, double dV) |
Function | cfl::min (const Function &rF, const Function &rG) |
Function | cfl::min (double dV, const Function &rF) |
Function | cfl::min (const Function &rF, double dV) |
Function | cfl::operator* (const Function &rF, const Function &rG) |
Function | cfl::operator* (double dV, const Function &rF) |
Function | cfl::operator* (const Function &rF, double dV) |
Function | cfl::operator+ (const Function &rF, const Function &rG) |
Function | cfl::operator+ (double dV, const Function &rF) |
Function | cfl::operator+ (const Function &rF, double dV) |
Function | cfl::operator- (const Function &rF) |
Function | cfl::operator- (const Function &rF, const Function &rG) |
Function | cfl::operator- (double dV, const Function &rF) |
Function | cfl::operator- (const Function &rF, double dV) |
Function | cfl::operator/ (const Function &rF, const Function &rG) |
Function | cfl::operator/ (double dV, const Function &rF) |
Function | cfl::operator/ (const Function &rF, double dV) |
Function | cfl::pow (const Function &rF, double dV) |
Function | cfl::sqrt (const Function &rF) |
template<class F > | |
Function | cfl::toFunction (const F &rF, double dLeft=-std::numeric_limits< double >::infinity(), double dRight=std::numeric_limits< double >::infinity()) |
Function | cfl::toFunction (const MultiFunction &rF, unsigned iArg=0, const std::valarray< double > &rOtherArg=std::valarray< double >()) |
This module deals with a one-dimensional function object.
Function cfl::abs | ( | const Function & | rF | ) |
Returns the absolute value of rF. The result contains a deep copy of rF. The domain of the result equals the domain of rF.
rF | The function which absolute value is computed. |
Function cfl::exp | ( | const Function & | rF | ) |
Returns the exponent of rF. The result contains a deep copy of rF. The domain of the result equals the domain of rF.
rF | The function which exponent is computed. |
Function cfl::log | ( | const Function & | rF | ) |
Returns the logarithm of rF. The result contains a deep copy of rF. The domain of the result equals the domain of rF.
rF | The function which logarithm is computed. |
Returns the maximum rF and rG. The result contains deep copies of rF and rG. The domain of the result equals the intersection of the domains of rF and rG.
rF | First function in the maximum. |
rG | Second function in the maximum. |
max(rF,rG)
Function cfl::max | ( | double | dV, |
const Function & | rF | ||
) |
Returns the maximum of dV and rF. The result contains a deep copy of rF. The domain of the result equals that of rF.
dV | The number-term of the maximum. |
rF | The function-term of the maximum. |
max(dV,rF)
Function cfl::max | ( | const Function & | rF, |
double | dV | ||
) |
Returns the maximum of rF and dV. The result contains a deep copy of rF. The domain of the result equals that of rF.
rF | The function-term of the maximum. |
dV | The number-term of the maximum. |
max(rF,dV)
Returns the minimum of rF and rG. The result contains deep copies of rF and rG. The domain of the result equals the intersection of the domains of rF and rG.
rF | The first function in the minimum. |
rG | The second term in the minimum. |
min(rF,rG)
Function cfl::min | ( | double | dV, |
const Function & | rF | ||
) |
Returns the minimum of dV and rF. The result contains a deep copy of rF. The domain of the result equals that of rF.
dV | The number-term of the minimum. |
rF | The function-term of the minimum. |
min(dV,rF)
Function cfl::min | ( | const Function & | rF, |
double | dV | ||
) |
Returns the minimum of rF and dV. The result contains a deep copy of rF. The domain of the result equals that of rF.
rF | The function-term of the maximum. |
dV | The number-term of the maximum. |
min(rF,dV)
Returns the product of rF and rG. The result contains deep copies of rF and rG. The domain of the result equals the intersection of the domains of rF and rG.
rF | First function multiplier. |
rG | Second function multiplier. |
rF*rG
Function cfl::operator* | ( | double | dV, |
const Function & | rF | ||
) |
Returns the product of dV and rF. The result contains a deep copy of rF. The domain of the result equals that of rF.
dV | The multiplier number. |
rF | The multiplier function. |
dV*rF
Function cfl::operator* | ( | const Function & | rF, |
double | dV | ||
) |
Returns the product of rF and dV. The result contains a deep copy of rF. The domain of the result equals that of rF.
rF | The function multiplier. |
dV | The number multiplier. |
rF*dV
Returns the sum of rF and rG. The result contains deep copies of rF and rG. The domain of the result equals the intersection of the domains of rF and rG.
rF | First element of the sum. |
rG | Second element of the sum. |
rF+rG
Function cfl::operator+ | ( | double | dV, |
const Function & | rF | ||
) |
Returns the sum of dV and rF. The result contains a deep copy of rF. The domain of the result equals that of rF.
dV | The number-term of the sum. |
rF | The function-term of the sum. |
dV+rF
Function cfl::operator+ | ( | const Function & | rF, |
double | dV | ||
) |
Returns the sum of rF and dV. The result contains a deep copy of rF. The domain of the result equals that of rF.
rF | The function-term of the sum. |
dV | The number-term of the sum. |
rF+dV
Function cfl::operator- | ( | const Function & | rF | ) |
Returns minus rF. The result contains a deep copy of rF. The domain of the result equals the domain of rF.
rF | A function object which minus is computed. |
-rF
Returns the difference between rF and rG. The result contains deep copies of rF and rG. The domain of the result equals the intersection of the domains of rF and rG.
rF | The function from which we subtract. |
rG | The function which is subtracted. |
rF-rG
Function cfl::operator- | ( | double | dV, |
const Function & | rF | ||
) |
Returns the difference between dV and rF. The result contains a deep copy of rF. The domain of the result equals that of rF.
dV | The number from which we subtract. |
rF | The function which is subtracted. |
dV-rF
Function cfl::operator- | ( | const Function & | rF, |
double | dV | ||
) |
Returns the difference between rF and dV. The result contains a deep copy of rF. The domain of the result equals that of rF.
rF | The function from which we subtract. |
dV | The number which is subtracted. |
rF-dV
Returns the ratio of rF and rG. The result contains deep copies of rF and rG. The domain of the result equals the intersection of the domains of rF and rG.
rF | The function which is divided. |
rG | The divisor function. |
rF/rG
Function cfl::operator/ | ( | double | dV, |
const Function & | rF | ||
) |
Returns the ratio of dV and rF. The result contains a deep copy of rF. The domain of the result equals that of rF.
dV | The number which is divided. |
rF | The divisor function. |
dV/rF
Function cfl::operator/ | ( | const Function & | rF, |
double | dV | ||
) |
Returns the ratio of rF and dV. The result contains a deep copy of rF. The domain of the result equals that of rF.
rF | The function which is divided. |
dV | The divisor number. |
rF/dV
Function cfl::pow | ( | const Function & | rF, |
double | dV | ||
) |
Returns rF in the power dV. The result contains a deep copy of rF. The domain of the result equals that of rF.
rF | The function-base. |
dV | The number-exponent. |
Function cfl::sqrt | ( | const Function & | rF | ) |
Returns the squire root of rF. The result contains the a deep copy of rF. The domain of the result equals the domain of rF.
rF | The function which square root is computed. |
Function cfl::toFunction | ( | const F & | rF, |
double | dLeft = -std::numeric_limits< double >::infinity() , |
||
double | dRight = std::numeric_limits< double >::infinity() |
||
) |
Constructs *this
from a unary function object of STL library. The types of argument and value of the unary function should allow implicit conversion to double
. A deep copy of rF is created in the result.
rF | A unary function object from STL library. |
dLeft | The left point of the domain of the function. |
dRight | The right point of the domain of the function. |
Function cfl::toFunction | ( | const MultiFunction & | rF, |
unsigned | iArg = 0 , |
||
const std::valarray< double > & | rOtherArg = std::valarray< double >() |
||
) |
Returns the restriction of the multi-dimensional function rF to the one-dimensional region defined as the intersection of the domain of rF with the line where the coordinate with index iArg is flexible and all other coordinates equal rOtherArg .
rF | Constant reference to a multi-dimensional function object. |
iArg | The index of flexible coordinate. |
rOtherArg | The values of fixed coordinates. |