Specialization for use with one Eigen vector (row or column) and a one-dimensional std::vector of integer types.
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
-
T1 | Type of first argument to which functor is applied. |
T2 | Type of second argument to which functor is applied. |
F | Type of functor to apply. |
- Parameters
-
x | Eigen input to which operation is applied. |
y | Integer std::vector input to which operation is applied. |
f | functor to apply to inputs. |
- Returns
- Eigen object with result of applying functor to inputs.
- Template Parameters
-
T1 | Type of first argument to which functor is applied. |
T2 | Type of second argument to which functor is applied. |
F | Type of functor to apply. |
- Parameters
-
x | Integer std::vector input to which operation is applied. |
y | Eigen input to which operation is applied. |
f | functor to apply to inputs. |
- 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
-
T1 | Type of Eigen object to which functor is applied. |
T2 | Type of scalar to which functor is applied. |
F | Type of functor to apply. |
- Parameters
-
x | Eigen input to which operation is applied. |
y | Scalar input to which operation is applied. |
f | functor to apply to Eigen and scalar inputs. |
- 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
-
T1 | Type of scalar to which functor is applied. |
T2 | Type of Eigen object to which functor is applied. |
F | Type of functor to apply. |
- Parameters
-
x | Scalar input to which operation is applied. |
y | Eigen input to which operation is applied. |
f | functor to apply to Eigen and scalar inputs. |
- Returns
- Eigen object with result of applying functor to inputs.
Definition at line 80 of file apply_scalar_binary.hpp.