Specialization for use with one Eigen vector (row or column) and a one-dimensional std::vector of integer types.
Specialization for use when the one input is an `var_value<Eigen> type and the other is a scalar.
Specialization for use with one var_value<Eigen vector>
(row or column) and a one-dimensional std::vector of integer types.
Specialization for use with combinations of Eigen::Matrix
and var_value<Eigen::Matrix>
inputs.
Specialization for use when the first input is a scalar and the second is a nested std::vector.
Specialization for use when the first input is a nested std::vector and the second is a scalar.
Specialization for use when the first input is a scalar and the second is a (non-nested) std::vector.
Specialization for use when the first input is a (non-nested) std::vector and the second is a scalar.
Specialization for use when the first input is an scalar and the second is an Eigen type.
Specialization for use when the first input is an Eigen type and the second is a scalar.
Specialization for use with a one-dimensional std::vector of integer types and one Eigen vector (row or column).
- Template Parameters
-
F | Type of functor to apply. |
T1 | Type of first argument to which functor is applied. |
T2 | Type of second argument to which functor is applied. |
- Parameters
-
f | functor to apply to inputs. |
x | Eigen input to which operation is applied. |
y | Integer std::vector input to which operation is applied. |
- Returns
- Eigen object with result of applying functor to inputs.
- Template Parameters
-
F | Type of functor to apply. |
T1 | Type of first argument to which functor is applied. |
T2 | Type of second argument to which functor is applied. |
- Parameters
-
f | functor to apply to inputs. |
x | Integer std::vector input to which operation is applied. |
y | Eigen input to which operation is applied. |
- Returns
- Eigen object with result of applying functor to inputs.
Eigen's unaryExpr framework is used for more efficient indexing of both row- and column-major inputs. The unaryExpr framework also allows for the scalar to be captured and applied to each element in the Eigen object.
- Template Parameters
-
F | Type of functor to apply. |
T1 | Type of Eigen object to which functor is applied. |
T2 | Type of scalar to which functor is applied. |
- Parameters
-
f | functor to apply to Eigen and scalar inputs. |
x | Eigen input to which operation is applied. |
y | Scalar input to which operation is applied. |
- Returns
- Eigen object with result of applying functor to inputs.
Eigen's unaryExpr framework is used for more efficient indexing of both row- and column-major inputs. The unaryExpr framework also allows for the scalar to be captured and applied to each element in the Eigen object.
- Template Parameters
-
F | Type of functor to apply. |
T1 | Type of scalar to which functor is applied. |
T2 | Type of Eigen object to which functor is applied. |
- Parameters
-
f | functor to apply to Eigen and scalar inputs. |
x | Scalar input to which operation is applied. |
y | Eigen input to which operation is applied. |
- Returns
- Eigen object with result of applying functor to inputs.
The std::vector input is mapped to an Eigen column vector and then the result is evaluated directly into the returned std::vector (via Eigen::Map).
The returned scalar type is deduced to allow for cases where the input and return scalar types differ (e.g., functions implicitly promoting integers).
- Template Parameters
-
F | Type of functor to apply. |
T1 | Type of std::vector to which functor is applied. |
T2 | Type of scalar to which functor is applied. |
- Parameters
-
f | functor to apply to std::vector and scalar inputs. |
x | std::vector input to which operation is applied. |
y | Scalar input to which operation is applied. |
- Returns
- std::vector with result of applying functor to inputs.
The std::vector input is mapped to an Eigen column vector and then the result is evaluated directly into the returned std::vector (via Eigen::Map).
The returned scalar type is deduced to allow for cases where the input and return scalar types differ (e.g., functions implicitly promoting integers).
- Template Parameters
-
F | Type of functor to apply. |
T1 | Type of scalar to which functor is applied. |
T2 | Type of std::vector to which functor is applied. |
- Parameters
-
f | functor to apply to std::vector and scalar inputs. |
x | Scalar input to which operation is applied. |
y | std::vector input to which operation is applied. |
- Returns
- std::vector with result of applying functor to inputs.
The returned scalar type is deduced to allow for cases where the input and return scalar types differ (e.g., functions implicitly promoting integers).
- Template Parameters
-
F | Type of functor to apply. |
T1 | Type of std::vector to which functor is applied. |
T2 | Type of scalar to which functor is applied. |
- Parameters
-
f | functor to apply to inputs. |
x | std::vector input to which operation is applied. |
y | Scalar input to which operation is applied. |
- Returns
- std::vector with result of applying functor to inputs.
The returned scalar type is deduced to allow for cases where the input and return scalar types differ (e.g., functions implicitly promoting integers).
- Template Parameters
-
F | Type of functor to apply. |
T1 | Type of scalar to which functor is applied. |
T2 | Type of std::vector to which functor is applied. |
- Parameters
-
f | functor to apply to inputs. |
x | Scalar input to which operation is applied. |
y | std::vector input to which operation is applied. |
- Returns
- std::vector with result of applying functor to inputs.
Eigen's binaryExpr framework is used for more efficient indexing of both row- and column-major inputs without separate loops.
- Template Parameters
-
F | Type of functor to apply. |
T1 | Type of first argument to which functor is applied. |
T2 | Type of second argument to which functor is applied. |
- Parameters
-
f | functor to apply to Matrix inputs. |
x | First Matrix input to which operation is applied. |
y | Second Matrix input to which operation is applied. |
- Returns
var_value<Matrix>
with result of applying functor to inputs.
- Template Parameters
-
F | Type of functor to apply. |
T1 | Type of first argument to which functor is applied. |
T2 | Type of second argument to which functor is applied. |
- Parameters
-
f | functor to apply to inputs. |
x | Matrix input to which operation is applied. |
y | Integer std::vector input to which operation is applied. |
- Returns
- var_value<Eigen> object with result of applying functor to inputs.
- Template Parameters
-
F | Type of functor to apply. |
T1 | Type of either var_value<Matrix> or scalar object to which functor is applied. |
T2 | Type of either var_value<Matrix> or scalar object to which functor is applied. |
- Parameters
-
f | functor to apply to var matrix and scalar inputs. |
x | Matrix or Scalar input to which operation is applied. |
x | Matrix or Scalar input to which operation is applied. |
- Returns
- `var_value<Matrix> object with result of applying functor to inputs.
Definition at line 82 of file apply_scalar_binary.hpp.