CFL
|
![]() |
Classes | |
class | cfl::IMultiFunction |
Interface for multi-dimensional function objects. More... | |
class | cfl::MultiFunction |
Standard concrete class for multi-dimensional function object. More... | |
Functions | |
MultiFunction | cfl::abs (const MultiFunction &rF) |
MultiFunction | cfl::exp (const MultiFunction &rF) |
MultiFunction | cfl::log (const MultiFunction &rF) |
MultiFunction | cfl::max (const MultiFunction &rF, const MultiFunction &rG) |
MultiFunction | cfl::max (double dV, const MultiFunction &rF) |
MultiFunction | cfl::max (const MultiFunction &rF, double dV) |
MultiFunction | cfl::min (const MultiFunction &rF, const MultiFunction &rG) |
MultiFunction | cfl::min (double dV, const MultiFunction &rF) |
MultiFunction | cfl::min (const MultiFunction &rF, double dV) |
MultiFunction | cfl::operator* (const MultiFunction &rF, const MultiFunction &rG) |
MultiFunction | cfl::operator* (double dV, const MultiFunction &rF) |
MultiFunction | cfl::operator* (const MultiFunction &rF, double dV) |
MultiFunction | cfl::operator+ (const MultiFunction &rF, const MultiFunction &rG) |
MultiFunction | cfl::operator+ (double dV, const MultiFunction &rF) |
MultiFunction | cfl::operator+ (const MultiFunction &rF, double dV) |
MultiFunction | cfl::operator- (const MultiFunction &rF) |
MultiFunction | cfl::operator- (const MultiFunction &rF, const MultiFunction &rG) |
MultiFunction | cfl::operator- (double dV, const MultiFunction &rF) |
MultiFunction | cfl::operator- (const MultiFunction &rF, double dV) |
MultiFunction | cfl::operator/ (const MultiFunction &rF, const MultiFunction &rG) |
MultiFunction | cfl::operator/ (double dV, const MultiFunction &rF) |
MultiFunction | cfl::operator/ (const MultiFunction &rF, double dV) |
MultiFunction | cfl::pow (const MultiFunction &rF, double dV) |
MultiFunction | cfl::sqrt (const MultiFunction &rF) |
MultiFunction | cfl::toMultiFunction (double(*f)(const std::valarray< double > &), bool(*g)(const std::valarray< double > &), unsigned iDim) |
MultiFunction | cfl::toMultiFunction (const Function &rF, unsigned iArg, unsigned iDim) |
MultiFunction | cfl::toMultiFunction (const MultiFunction &rF, const std::vector< unsigned > &rArg, const std::valarray< double > &rOtherArg) |
This module deals with a multi-dimensional function object.
MultiFunction cfl::abs | ( | const MultiFunction & | 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. |
MultiFunction cfl::exp | ( | const MultiFunction & | 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. |
MultiFunction cfl::log | ( | const MultiFunction & | 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. |
MultiFunction cfl::max | ( | const MultiFunction & | rF, |
const MultiFunction & | rG | ||
) |
Returns the maximum 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 in the maximum. |
rG | Second function in the maximum. |
max(rF,rG)
. MultiFunction cfl::max | ( | double | dV, |
const MultiFunction & | rF | ||
) |
Returns the maximum between dV and rF. The result contains a deep copy of rF. The domain of the result equals the domain of rF.
dV | The number-term of the maximum. |
rF | The function-term of the maximum. |
max(dV,rF)
. MultiFunction cfl::max | ( | const MultiFunction & | rF, |
double | dV | ||
) |
Returns the maximum between rF and dV. The result contains a deep copy of rF. The domain of the result equals the domain of rF.
rF | The function-term of the maximum. |
dV | The number-term of the maximum. |
max(rF,dV)
. MultiFunction cfl::min | ( | const MultiFunction & | rF, |
const MultiFunction & | rG | ||
) |
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)
. MultiFunction cfl::min | ( | double | dV, |
const MultiFunction & | rF | ||
) |
Returns the minimum between dV and rF. The result contains a deep copy of rF. The domain of the result equals the domain of rF.
dV | The number-term of the minimum. |
rF | The function-term of the minimum. |
min(dV,rF)
. MultiFunction cfl::min | ( | const MultiFunction & | rF, |
double | dV | ||
) |
Returns the minimum between rF and dV. The result contains a deep copy of rF. The domain of the result equals the domain of rF.
rF | The function-term of the maximum. |
dV | The number-term of the maximum. |
min(rF,dV)
. MultiFunction cfl::operator* | ( | const MultiFunction & | rF, |
const MultiFunction & | rG | ||
) |
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
MultiFunction cfl::operator* | ( | double | dV, |
const MultiFunction & | rF | ||
) |
Returns the product of dV and rF. The result contains deep copy of rF. The domain of the result equals that of rF.
dV | The multiplier number. |
rF | The multiplier function. |
dV*rF
MultiFunction cfl::operator* | ( | const MultiFunction & | rF, |
double | dV | ||
) |
Returns the product of dV and rF. The result contains a deep copy of rF. The domain of the result equals the domain of rF.
rF | The multiplier function. |
dV | The multiplier number. |
rF*dV
. MultiFunction cfl::operator+ | ( | const MultiFunction & | rF, |
const MultiFunction & | rG | ||
) |
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 function term of the sum. |
rG | Second function term of the sum. |
rF+rG
MultiFunction cfl::operator+ | ( | double | dV, |
const MultiFunction & | 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
MultiFunction cfl::operator+ | ( | const MultiFunction & | rF, |
double | dV | ||
) |
Returns the sum of rF and dV. The result contains a deep copy of rF. The domain of the result equals the domain of rF.
rF | The function-term of the sum. |
dV | The number-term of the sum. |
rF+dV
. MultiFunction cfl::operator- | ( | const MultiFunction & | rF | ) |
Returns minus rF. The result contains a deep copy of rF. The domain of the result equals the domain of rF.
rF | The function which minus is computed. |
-rF
MultiFunction cfl::operator- | ( | const MultiFunction & | rF, |
const MultiFunction & | rG | ||
) |
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
MultiFunction cfl::operator- | ( | double | dV, |
const MultiFunction & | 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
MultiFunction cfl::operator- | ( | const MultiFunction & | rF, |
double | dV | ||
) |
Returns the difference between rF and dV. The result contains a deep copy of rF. The domain of the result equals the domain of rF.
rF | The function from which we subtract. |
dV | The number which is subtracted. |
rF-dV
. MultiFunction cfl::operator/ | ( | const MultiFunction & | rF, |
const MultiFunction & | rG | ||
) |
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
MultiFunction cfl::operator/ | ( | double | dV, |
const MultiFunction & | 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
MultiFunction cfl::operator/ | ( | const MultiFunction & | rF, |
double | dV | ||
) |
Returns the ratio of rF and dV. The result contains a deep copy of rF. The domain of the result equals the domain of rF.
rF | The function which is divided. |
dV | The divisor number. |
rF/dV
. MultiFunction cfl::pow | ( | const MultiFunction & | rF, |
double | dV | ||
) |
Returns rF in the power dV. The result contains a deep copy of rF. The domain of the result equals the domain of rF.
rF | The function-base. |
dV | The number-exponent. |
MultiFunction cfl::sqrt | ( | const MultiFunction & | 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. |
MultiFunction cfl::toMultiFunction | ( | double(*)(const std::valarray< double > &) | f, |
bool(*)(const std::valarray< double > &) | g, | ||
unsigned | iDim | ||
) |
Returns function with dimension iDim which values are given by f and the domain is defined by g.
f | This function determines the values of the result. |
g | This function determines the domain of the result. |
iDim | The dimension of the result. |
MultiFunction cfl::toMultiFunction | ( | const Function & | rF, |
unsigned | iArg, | ||
unsigned | iDim | ||
) |
Adapter of one-dimensional function to a multi-dimensional one.
rF | The constant reference to a one-dimensional function object. |
iDim | The dimension of the domain of the result. |
iArg | The index of the coordinate which is used as an argument of the function rF to compute the value of the result. |
MultiFunction cfl::toMultiFunction | ( | const MultiFunction & | rF, |
const std::vector< unsigned > & | rArg, | ||
const std::valarray< double > & | rOtherArg | ||
) |
Constrains multi-dimensional function to a domain of smaller dimension.
rF | The input multi-dimensional function. |
rArg | The vector of arguments of the flexible coordinates. |
rOtherArg | The values of fixed coordinates. |