utils
Utilities for modeling. More...
Functions |
|
| auto | abs (Expression value) -> xpress::objects::InternalFunctionExpression |
Create an expression for abs(value). |
|
| auto | arccos (Expression value) -> xpress::objects::InternalFunctionExpression |
Create an expression for arccos(value). |
|
| auto | arcsin (Expression value) -> xpress::objects::InternalFunctionExpression |
Create an expression for arcsin(value). |
|
| auto | arctan (Expression value) -> xpress::objects::InternalFunctionExpression |
Create an expression for arctan(value). |
|
| auto | cos (Expression value) -> xpress::objects::InternalFunctionExpression |
Create an expression for cos(value). |
|
| auto | div (double dividend, Expression divisor) -> xpress::objects::Expression |
Create an expression for dividend + divisor. |
|
| auto | div (Expression dividend, double divisor) -> xpress::objects::Expression |
Create an expression for dividend + divisor. |
|
| auto | div (Expression dividend, Expression divisor) -> xpress::objects::Expression |
Create an expression for dividend / divisor. |
|
| auto | exp (Expression value) -> xpress::objects::InternalFunctionExpression |
Create an expression for exp(value). |
|
| auto | ln (Expression value) -> xpress::objects::InternalFunctionExpression |
Create an expression for ln(value). |
|
| auto | log10 (Expression value) -> xpress::objects::InternalFunctionExpression |
Create an expression for log10(value). |
|
| template<typename... VALUE, typename RestrictPack = typename std::enable_if<xpress::AllConvertible<Expression, VALUE...>::value>::type> | |
| auto | max (VALUE... value) -> xpress::objects::InternalFunctionExpression |
Create an expression for max(value, ...). |
|
| auto | max (xpress::SizedArray< Expression const > const &value) -> xpress::objects::InternalFunctionExpression |
Create an expression for max(value, ...). |
|
| template<typename... VALUE, typename RestrictPack = typename std::enable_if<xpress::AllConvertible<Expression, VALUE...>::value>::type> | |
| auto | min (VALUE... value) -> xpress::objects::InternalFunctionExpression |
Create an expression for min(value, ...). |
|
| auto | min (xpress::SizedArray< Expression const > const &value) -> xpress::objects::InternalFunctionExpression |
Create an expression for min(value, ...). |
|
| auto | minus (double minuend, Expression subtrahend) -> xpress::objects::Expression |
Create an expression for minuend + subtrahend. |
|
| auto | minus (Expression minuend, double subtrahend) -> xpress::objects::Expression |
Create an expression for minuend + subtrahend. |
|
| auto | minus (Expression minuend, Expression subtrahend) -> xpress::objects::Expression |
Create an expression for minuend - subtrahend. |
|
| auto | mul (double factor1, Expression factor2) -> xpress::objects::Expression |
Create an expression for factor1 + factor2. |
|
| auto | mul (Expression factor1, double factor2) -> xpress::objects::Expression |
Create an expression for factor1 + factor2. |
|
| auto | mul (Expression factor1, Expression factor2) -> xpress::objects::Expression |
Create an expression for factor1 * factor2. |
|
| auto | plus (double augend, Expression addend) -> xpress::objects::Expression |
Create an expression for augend + addend. |
|
| auto | plus (Expression augend, double addend) -> xpress::objects::Expression |
Create an expression for augend + addend. |
|
| auto | plus (Expression augend, Expression addend) -> xpress::objects::Expression |
Create an expression for augend + addend. |
|
| auto | pow (double basis, Expression exp) -> xpress::objects::BinaryExpression |
Create an expression for base ^ exp. |
|
| auto | pow (Expression basis, double exp) -> xpress::objects::BinaryExpression |
Create an expression for base ^ exp. |
|
| auto | pow (Expression basis, Expression exp) -> xpress::objects::BinaryExpression |
Create an expression for base ^ exp. |
|
| template<typename... VALUE, typename RestrictPack = typename std::enable_if<xpress::AllConvertible<Expression, VALUE...>::value>::type> | |
| auto | prod (VALUE... value) -> xpress::objects::Expression |
Create an expression for prod(value, ...). |
|
| auto | prod (xpress::SizedArray< Expression const > const &value) -> xpress::objects::Expression |
Create an expression for prod(value, ...). |
|
| template<typename K > | |
| auto | scalarProduct (std::unordered_map< K, Variable > variables, std::unordered_map< K, double > coefs) -> xpress::objects::LinExpression |
| Compute the scalar product between a map of variables and a map of coefficients. |
|
| template<typename Strm_variables , typename Strm_coefs , is-stream(Strm_variables) , is-stream(Strm_coefs) > | |
| auto | scalarProduct (Strm_variables const &variables, Strm_coefs const &coefs) -> xpress::objects::LinExpression |
| Compute the scalar product between a vector of variables and a vector of coefficients. |
|
| template<typename Strm_variables1 , typename Strm_variables2 , typename Strm_coefs , is-stream(Strm_variables1) , is-stream(Strm_variables2) , is-stream(Strm_coefs) > | |
| auto | scalarProduct (Strm_variables1 const &variables1, Strm_variables2 const &variables2, Strm_coefs const &coefs) -> xpress::objects::QuadExpression |
| Compute the elementwise product between two vectors of variables and a vector of coefficients. |
|
| auto | sign (Expression value) -> xpress::objects::InternalFunctionExpression |
Create an expression for sign(value). |
|
| auto | sin (Expression value) -> xpress::objects::InternalFunctionExpression |
Create an expression for sin(value). |
|
| auto | sqrt (Expression value) -> xpress::objects::InternalFunctionExpression |
Create an expression for sqrt(value). |
|
| template<typename A = Expression, typename C1 , typename C2 , typename C3 , typename C4 , typename C5 , is-integral(C1) , is-integral(C2) , is-integral(C3) , is-integral(C4) , is-integral(C5) , typename Func_makeTerm , is-invocable(Func_makeTerm, A, C1, C2, C3, C4, C5) > | |
| auto | sum (C1 count1, C2 count2, C3 count3, C4 count4, C5 count5, Func_makeTerm makeTerm) -> typename SumTrait< typename std::invoke_result< Func_makeTerm, C1, C2, C3, C4, C5 >::type >::result_type |
| Create a 5-dimensional sum of expressions. |
|
| template<typename A = Expression, typename C1 , typename C2 , typename C3 , typename C4 , is-integral(C1) , is-integral(C2) , is-integral(C3) , is-integral(C4) , typename Func_makeTerm , is-invocable(Func_makeTerm, A, C1, C2, C3, C4) > | |
| auto | sum (C1 count1, C2 count2, C3 count3, C4 count4, Func_makeTerm makeTerm) -> typename SumTrait< typename std::invoke_result< Func_makeTerm, C1, C2, C3, C4 >::type >::result_type |
| Create a 4-dimensional sum of expressions. |
|
| template<typename A = Expression, typename C1 , typename C2 , typename C3 , is-integral(C1) , is-integral(C2) , is-integral(C3) , typename Func_makeTerm , is-invocable(Func_makeTerm, A, C1, C2, C3) > | |
| auto | sum (C1 count1, C2 count2, C3 count3, Func_makeTerm makeTerm) -> typename SumTrait< typename std::invoke_result< Func_makeTerm, C1, C2, C3 >::type >::result_type |
| Create a 3-dimensional sum of expressions. |
|
| template<typename A = Expression, typename C1 , typename C2 , is-integral(C1) , is-integral(C2) , typename Func_makeTerm , is-invocable(Func_makeTerm, A, C1, C2) > | |
| auto | sum (C1 count1, C2 count2, Func_makeTerm makeTerm) -> typename SumTrait< typename std::invoke_result< Func_makeTerm, C1, C2 >::type >::result_type |
| Create a 2-dimensional sum of expressions. |
|
| template<typename... MORETERMS, typename RestrictPack = typename std::enable_if<xpress::AllConvertible<Expression, MORETERMS...>::value>::type> | |
| auto | sum (Expression firstTerm, MORETERMS... moreTerms) -> xpress::objects::SumExpression |
| Create an expression from an array of other expressions. |
|
| template<typename A = Expression, typename I , is-integral(I) , typename Func_makeTerm , is-invocable(Func_makeTerm, A, I) > | |
| auto | sum (I const &count, Func_makeTerm makeTerm) -> typename SumTrait< typename std::invoke_result< Func_makeTerm, I >::type >::result_type |
| Create a sum of expressions. |
|
| template<typename Iter_data1 , typename Iter_data2 , typename A = Expression, typename T1 = element-type(Iter_data1), typename T2 = element-type(Iter_data2), typename Func_makeTerm , is-iterable(Iter_data1) , is-iterable(Iter_data2) , is-invocable(Func_makeTerm, A, T1, T2) > | |
| auto | sum (Iter_data1 const &data1, Iter_data2 const &data2, Func_makeTerm makeTerm) -> typename SumTrait< typename std::invoke_result< Func_makeTerm, T1, T2 >::type >::result_type |
| Create a 2-dimensional sum of expressions. |
|
| template<typename Iter_data1 , typename Iter_data2 , typename Iter_data3 , typename A = Expression, typename T1 = element-type(Iter_data1), typename T2 = element-type(Iter_data2), typename T3 = element-type(Iter_data3), typename Func_makeTerm , is-iterable(Iter_data1) , is-iterable(Iter_data2) , is-iterable(Iter_data3) , is-invocable(Func_makeTerm, A, T1, T2, T3) > | |
| auto | sum (Iter_data1 const &data1, Iter_data2 const &data2, Iter_data3 const &data3, Func_makeTerm makeTerm) -> typename SumTrait< typename std::invoke_result< Func_makeTerm, T1, T2, T3 >::type >::result_type |
| Create a 3-dimensional sum of expressions. |
|
| template<typename Iter_data1 , typename Iter_data2 , typename Iter_data3 , typename Iter_data4 , typename A = Expression, typename T1 = element-type(Iter_data1), typename T2 = element-type(Iter_data2), typename T3 = element-type(Iter_data3), typename T4 = element-type(Iter_data4), typename Func_makeTerm , is-iterable(Iter_data1) , is-iterable(Iter_data2) , is-iterable(Iter_data3) , is-iterable(Iter_data4) , is-invocable(Func_makeTerm, A, T1, T2, T3, T4) > | |
| auto | sum (Iter_data1 const &data1, Iter_data2 const &data2, Iter_data3 const &data3, Iter_data4 const &data4, Func_makeTerm makeTerm) -> typename SumTrait< typename std::invoke_result< Func_makeTerm, T1, T2, T3, T4 >::type >::result_type |
| Create a 4-dimensional sum of expressions. |
|
| template<typename Iter_data1 , typename Iter_data2 , typename Iter_data3 , typename Iter_data4 , typename Iter_data5 , typename A = Expression, typename T1 = element-type(Iter_data1), typename T2 = element-type(Iter_data2), typename T3 = element-type(Iter_data3), typename T4 = element-type(Iter_data4), typename T5 = element-type(Iter_data5), typename Func_makeTerm , is-iterable(Iter_data1) , is-iterable(Iter_data2) , is-iterable(Iter_data3) , is-iterable(Iter_data4) , is-iterable(Iter_data5) , is-invocable(Func_makeTerm, A, T1, T2, T3, T4, T5) > | |
| auto | sum (Iter_data1 const &data1, Iter_data2 const &data2, Iter_data3 const &data3, Iter_data4 const &data4, Iter_data5 const &data5, Func_makeTerm makeTerm) -> typename SumTrait< typename std::invoke_result< Func_makeTerm, T1, T2, T3, T4, T5 >::type >::result_type |
| Create a 5-dimensional sum of expressions. |
|
| template<typename Strm_data , typename A = Expression, typename T = element-type(Strm_data), typename Func_makeTerm , is-stream(Strm_data) , is-invocable(Func_makeTerm, A, T const &) > | |
| auto | sum (Strm_data const &data, Func_makeTerm makeTerm) -> typename SumTrait< typename std::invoke_result< Func_makeTerm, T >::type >::result_type |
| Create a sum of expressions. |
|
| template<typename Strm_terms , typename T = element-type(Strm_terms), is-stream(Strm_terms) > | |
| auto | sum (Strm_terms const &terms) -> typename SumTrait< T >::result_type |
| Create an expression from a stream of other expressions. |
|
| auto | tan (Expression value) -> xpress::objects::InternalFunctionExpression |
Create an expression for tan(value). |
|
| auto | uminus (Expression value) -> xpress::objects::Expression |
Create an expression for -value. |
|
Detailed Description
Utilities for modeling.
- Since
- 44.00
Function Documentation
abs()
|
inline |
Create an expression for abs(value).
- Parameters
-
value Function argument.
- Returns
-
abs(value).
- Since
- 44.00
arccos()
|
inline |
Create an expression for arccos(value).
- Parameters
-
value Function argument.
- Returns
-
arccos(value).
- Since
- 44.00
arcsin()
|
inline |
Create an expression for arcsin(value).
- Parameters
-
value Function argument.
- Returns
-
arcsin(value).
- Since
- 44.00
arctan()
|
inline |
Create an expression for arctan(value).
- Parameters
-
value Function argument.
- Returns
-
arctan(value).
- Since
- 44.00
cos()
|
inline |
Create an expression for cos(value).
- Parameters
-
value Function argument.
- Returns
-
cos(value).
- Since
- 44.00
div() [1/3]
|
inline |
Create an expression for dividend + divisor.
This is equivalent to ConstantExpression(dividend).div(divisor) and is only provided for completeness.
- Parameters
-
dividend dividend. divisor divisor.
- Returns
- quotient of dividend and divisor.
- Since
- 44.00
div() [2/3]
|
inline |
Create an expression for dividend + divisor.
This is equivalent to dividend.div(divisor) and is only provided for completeness.
- Parameters
-
dividend dividend. divisor divisor.
- Returns
- quotient of dividend and divisor.
- Since
- 44.00
div() [3/3]
|
inline |
Create an expression for dividend / divisor.
This is equivalent to dividend.div(divisor) and is only provided for completeness.
- Parameters
-
dividend dividend. divisor divisor.
- Returns
- quotient of dividend and divisor.
- Since
- 44.00
exp()
|
inline |
Create an expression for exp(value).
- Parameters
-
value Function argument.
- Returns
-
exp(value).
- Since
- 44.00
ln()
|
inline |
Create an expression for ln(value).
- Parameters
-
value Function argument.
- Returns
-
ln(value).
- Since
- 44.00
log10()
|
inline |
Create an expression for log10(value).
- Parameters
-
value Function argument.
- Returns
-
log10(value).
- Since
- 44.00
max() [1/2]
|
inline |
Create an expression for max(value, ...).
Consider also using Variable.maxOf.
- Parameters
-
value Arguments.
- Returns
-
max(value...).
- Since
- 44.00
max() [2/2]
|
inline |
Create an expression for max(value, ...).
Consider also using Variable.maxOf.
- Parameters
-
value Arguments.
- Returns
-
max(value...).
- Since
- 44.00
min() [1/2]
|
inline |
Create an expression for min(value, ...).
Consider also using Variable.minOf(...).
- Parameters
-
value Arguments.
- Returns
-
min(value...).
- Since
- 44.00
min() [2/2]
|
inline |
Create an expression for min(value, ...).
Consider also using Variable.minOf(...).
- Parameters
-
value Arguments-
- Returns
-
min(value...).
- Since
- 44.00
minus() [1/3]
|
inline |
Create an expression for minuend + subtrahend.
This is equivalent to ConstantExpression(minuend).minus(subtrahend) and is only provided for completeness.
- Parameters
-
minuend minuend. subtrahend subtrahend.
- Returns
- difference of minuend and subtrahend.
- Since
- 44.00
minus() [2/3]
|
inline |
Create an expression for minuend + subtrahend.
This is equivalent to minuend.minus(subtrahend) and is only provided for completeness.
- Parameters
-
minuend minuend. subtrahend subtrahend.
- Returns
- difference of minuend and subtrahend.
- Since
- 44.00
minus() [3/3]
|
inline |
Create an expression for minuend - subtrahend.
This is equivalent to minuend.minus(subtrahend) and is only provided for completeness.
- Parameters
-
minuend minuend. subtrahend subtrahend.
- Returns
- difference of minuend and subtrahend.
- Since
- 44.00
mul() [1/3]
|
inline |
Create an expression for factor1 + factor2.
This is equivalent to ConstantExpression(factor1).mul(factor2) and is only provided for completeness.
Examples using mul:
- Parameters
-
factor1 factor1. factor2 factor2.
- Returns
- product of factor1 and factor2.
- Since
- 44.00
mul() [2/3]
|
inline |
Create an expression for factor1 + factor2.
This is equivalent to factor1.mul(factor2) and is only provided for completeness.
Examples using mul:
- Parameters
-
factor1 factor1. factor2 factor2.
- Returns
- product of factor1 and factor2.
- Since
- 44.00
mul() [3/3]
|
inline |
Create an expression for factor1 * factor2.
This is equivalent to factor1.mul(factor2) and is only provided for completeness.
Examples using mul:
- Parameters
-
factor1 factor1. factor2 factor2.
- Returns
- product of factor1 and factor2.
- Since
- 44.00
plus() [1/3]
|
inline |
Create an expression for augend + addend.
This is equivalent to ConstantExpression(augend).plus(addend) and is only provided for completeness.
- Parameters
-
augend augend. addend addend.
- Returns
- sum of augend and addend.
- Since
- 44.00
plus() [2/3]
|
inline |
Create an expression for augend + addend.
This is equivalent to augend.plus(addend) and is only provided for completeness.
- Parameters
-
augend augend. addend addend.
- Returns
- sum of augend and addend.
- Since
- 44.00
plus() [3/3]
|
inline |
Create an expression for augend + addend.
This is equivalent to augend.plus(addend) and is only provided for completeness.
- Parameters
-
augend augend. addend addend.
- Returns
- sum of augend and addend.
- Since
- 44.00
pow() [1/3]
|
inline |
Create an expression for base ^ exp.
Note that adding the result of pow to your model in any way will turn the model into a non-linear model. In order to square a variable or linear expression, use one of Variable#square(), LinTerm#square(), or LinExpression#square(). They all create linear or quadratic expressions.
- Parameters
-
basis Base. exp Exponent.
- Returns
-
basisraised to the power ofexp.
- Since
- 44.00
pow() [2/3]
|
inline |
Create an expression for base ^ exp.
Note that adding the result of pow to your model in any way will turn the model into a non-linear model. In order to square a variable or linear expression, use one of Variable#square(), LinTerm#square(), or LinExpression#square(). They all create linear or quadratic expressions.
- Parameters
-
basis Base. exp Exponent.
- Returns
-
basisraised to the power ofexp.
- Since
- 44.00
pow() [3/3]
|
inline |
Create an expression for base ^ exp.
Note that adding the result of pow to your model in any way will turn the model into a non-linear model. In order to square a variable or linear expression, use one of Variable#square(), LinTerm#square(), or LinExpression#square(). They all create linear or quadratic expressions.
- Parameters
-
basis Base. exp Exponent.
- Returns
-
basisraised to the power ofexp.
- Since
- 44.00
prod() [1/2]
|
inline |
Create an expression for prod(value, ...).
- Parameters
-
value Expressions to multiply.
- Returns
-
The product of the expression in
value.
- Since
- 44.00
prod() [2/2]
|
inline |
Create an expression for prod(value, ...).
- Since
- 44.00
scalarProduct() [1/3]
|
inline |
Compute the scalar product between a map of variables and a map of coefficients.
The function assumes that variables and coefs have the same keys (missing keys in coefs are treated as zero) and creates a linear expression by iterating over the keys in variables and adding up the variable/coefficient pair for each key.
- Parameters
-
variables Map of variables. coefs Map of coefficients for the variables in variables.
- Template Parameters
-
K Key type.
- Returns
- The linear expression.
- Since
- 44.00
scalarProduct() [2/3]
|
inline |
Compute the scalar product between a vector of variables and a vector of coefficients.
Both vectors are specified as streams of elements.
- Parameters
-
variables Variables in the scalar product. coefs Coefficients in the scalar product.
- Template Parameters
-
Strm_variables Something that supports begin()andend()and contains values of typexpress::objects::Variable.Strm_coefs Something that supports begin()andend()and contains values of typedouble.
- Returns
- The sum of the specified terms.
- Since
- 44.00
scalarProduct() [3/3]
|
inline |
Compute the elementwise product between two vectors of variables and a vector of coefficients.
All vectors are specified as streams of elements.
- Parameters
-
variables1 First variables in the product. variables2 Second variables in the product. coefs Coefficients in the product.
- Template Parameters
-
Strm_variables1 Something that supports begin()andend()and contains values of typeVariable.Strm_variables2 Something that supports begin()andend()and contains values of typeVariable.Strm_coefs Something that supports begin()andend()and contains values of typedouble.
- Returns
- The sum of the specified terms.
- Since
- 44.00
sign()
|
inline |
Create an expression for sign(value).
- Parameters
-
value Function argument.
- Returns
-
sign(value).
- Since
- 44.00
sin()
|
inline |
Create an expression for sin(value).
- Parameters
-
value Function argument.
- Returns
-
sin(value).
- Since
- 44.00
sqrt()
|
inline |
Create an expression for sqrt(value).
- Parameters
-
value Function argument.
- Returns
-
sqrt(value).
- Since
- 44.00
sum() [1/12]
|
inline |
Create a 5-dimensional sum of expressions.
Note that the terms are captured by reference, i.e., changing those terms later will affect the return sum.
- Parameters
-
count1 Count for dimension 1. count2 Count for dimension 2. count3 Count for dimension 3. count4 Count for dimension 4. count5 Count for dimension 5. makeTerm Function to produce an expression for each data element.
- Template Parameters
-
A Type of expressions that are summed up. C1 Type for dimension 1. C2 Type for dimension 2. C3 Type for dimension 3. C4 Type for dimension 4. C5 Type for dimension 5. Func_makeTerm auto (C1,C2,C3,C4,C5) -> A: Maps(C1,C2,C3,C4,C5)toA.
- Since
- 44.00
sum() [2/12]
|
inline |
Create a 4-dimensional sum of expressions.
Note that the terms are captured by reference, i.e., changing those terms later will affect the return sum.
- Parameters
-
count1 Count for dimension 1. count2 Count for dimension 2. count3 Count for dimension 3. count4 Count for dimension 4. makeTerm Function to produce an expression for each data element.
- Template Parameters
-
A Type of expressions that are summed up. C1 Type for dimension 1. C2 Type for dimension 2. C3 Type for dimension 3. C4 Type for dimension 4. Func_makeTerm auto (C1,C2,C3,C4) -> A: Maps(C1,C2,C3,C4)toA.
- Since
- 44.00
sum() [3/12]
|
inline |
Create a 3-dimensional sum of expressions.
Note that the terms are captured by reference, i.e., changing those terms later will affect the return sum.
- Parameters
-
count1 Count for dimension 1. count2 Count for dimension 2. count3 Count for dimension 3. makeTerm Function to produce an expression for each data element.
- Template Parameters
-
A Type of expressions that are summed up. C1 Type for dimension 1. C2 Type for dimension 2. C3 Type for dimension 3. Func_makeTerm auto (C1,C2,C3) -> A: Maps(C1,C2,C3)toA.
- Since
- 44.00
sum() [4/12]
|
inline |
Create a 2-dimensional sum of expressions.
Note that the terms are captured by reference, i.e., changing those terms later will affect the return sum.
- Parameters
-
count1 Count for dimension 1. count2 Count for dimension 2. makeTerm Function to produce an expression for each data element.
- Template Parameters
-
A Type of expressions that are summed up. C1 Type for dimension 1. C2 Type for dimension 2. Func_makeTerm auto (C1,C2) -> A: Maps(C1,C2)toA.
- Since
- 44.00
sum() [5/12]
|
inline |
Create an expression from an array of other expressions.
Note that the other expressions are copied by reference, so changing them later will affect the returned expression.
- Parameters
-
firstTerm The first term to sum up. moreTerms The other terms to sum up.
- Returns
- The expression.
- Since
- 44.00
sum() [6/12]
|
inline |
Create a sum of expressions.
Note that the terms are captured by reference, i.e., changing those terms later will affect the return sum.
- Parameters
-
count Number of elements in the sum. makeTerm Function to produce an expression for each data element.
- Template Parameters
-
A Type of expressions that are summed up. I Type for count Func_makeTerm auto (I) -> A: Maps(I)toA.
- Returns
- The sum.
- Since
- 44.00
sum() [7/12]
|
inline |
Create a 2-dimensional sum of expressions.
Note that the terms are captured by reference, i.e., changing those terms later will affect the return sum.
- Parameters
-
data1 Data for dimension 1. data2 Data for dimension 2. makeTerm Function to produce an expression for each data tuple.
- Template Parameters
-
Iter_data1 Something that supports begin()andend()and contains values of typeT1.Iter_data2 Something that supports begin()andend()and contains values of typeT2.A Type of expressions to be summed up. T1 Type for dimension 1. T2 Type for dimension 2. Func_makeTerm auto (T1,T2) -> A: Maps(T1,T2)toA.
- Since
- 44.00
sum() [8/12]
|
inline |
Create a 3-dimensional sum of expressions.
Note that the terms are captured by reference, i.e., changing those terms later will affect the return sum.
- Parameters
-
data1 Data for dimension 1. data2 Data for dimension 2. data3 Data for dimension 3. makeTerm Function to produce an expression for each data tuple.
- Template Parameters
-
Iter_data1 Something that supports begin()andend()and contains values of typeT1.Iter_data2 Something that supports begin()andend()and contains values of typeT2.Iter_data3 Something that supports begin()andend()and contains values of typeT3.A Type of expressions to be summed up. T1 Type for dimension 1. T2 Type for dimension 2. T3 Type for dimension 3. Func_makeTerm auto (T1,T2,T3) -> A: Maps(T1,T2,T3)toA.
- Since
- 44.00
sum() [9/12]
|
inline |
Create a 4-dimensional sum of expressions.
Note that the terms are captured by reference, i.e., changing those terms later will affect the return sum.
- Parameters
-
data1 Data for dimension 1. data2 Data for dimension 2. data3 Data for dimension 3. data4 Data for dimension 4. makeTerm Function to produce an expression for each data tuple.
- Template Parameters
-
Iter_data1 Something that supports begin()andend()and contains values of typeT1.Iter_data2 Something that supports begin()andend()and contains values of typeT2.Iter_data3 Something that supports begin()andend()and contains values of typeT3.Iter_data4 Something that supports begin()andend()and contains values of typeT4.A Type of expressions to be summed up. T1 Type for dimension 1. T2 Type for dimension 2. T3 Type for dimension 3. T4 Type for dimension 4. Func_makeTerm auto (T1,T2,T3,T4) -> A: Maps(T1,T2,T3,T4)toA.
- Since
- 44.00
sum() [10/12]
|
inline |
Create a 5-dimensional sum of expressions.
Note that the terms are captured by reference, i.e., changing those terms later will affect the return sum.
- Parameters
-
data1 Data for dimension 1. data2 Data for dimension 2. data3 Data for dimension 3. data4 Data for dimension 4. data5 Data for dimension 5. makeTerm Function to produce an expression for each data tuple.
- Template Parameters
-
Iter_data1 Something that supports begin()andend()and contains values of typeT1.Iter_data2 Something that supports begin()andend()and contains values of typeT2.Iter_data3 Something that supports begin()andend()and contains values of typeT3.Iter_data4 Something that supports begin()andend()and contains values of typeT4.Iter_data5 Something that supports begin()andend()and contains values of typeT5.A Type of expressions to be summed up. T1 Type for dimension 1. T2 Type for dimension 2. T3 Type for dimension 3. T4 Type for dimension 4. T5 Type for dimension 5. Func_makeTerm auto (T1,T2,T3,T4,T5) -> A: Maps(T1,T2,T3,T4,T5)toA.
- Since
- 44.00
sum() [11/12]
|
inline |
Create a sum of expressions.
Note that the terms are captured by reference, i.e., changing those terms later will affect the return sum.
- Parameters
-
data Data to iterate. makeTerm Function to create terms.
- Template Parameters
-
Strm_data Something that supports begin()andend()and contains values of typeT.Func_makeTerm auto (T const &) -> A: Maps(T const &)toA.
- Returns
- The expression.
- Since
- 44.00
sum() [12/12]
|
inline |
Create an expression from a stream of other expressions.
Note that the other expressions are copied by reference, so changing them later will affect the returned expression.
- Parameters
-
terms The expression to sum up.
- Template Parameters
-
Strm_terms Something that supports begin()andend()and contains values of typeT.T The actual term type.
- Returns
- The expression.
- Since
- 44.00
tan()
|
inline |
Create an expression for tan(value).
- Parameters
-
value Function argument.
- Returns
-
tan(value).
- Since
- 44.00
uminus()
|
inline |
Create an expression for -value.
- Parameters
-
value The value to negate.
- Returns
-
An expression representing
-value.
- Since
- 44.00
© 2001-2025 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.
