Execute a named operation from the pool.
- Template Parameters
-
| OpClass | Operation class type |
| InputType | Input data type |
| OutputType | Output data type |
- Parameters
-
| name | Name of the operation |
| input | Input data |
- Returns
- Optional containing result or nullopt on failure
Definition at line 148 of file ComputeMatrix.hpp.
149 {
151 if (!operation)
152 return std::nullopt;
153 return execute_operation<OpClass, InputType, OutputType>(operation, input);
154 }
OperationPool m_operations
std::shared_ptr< OpClass > get(const std::string &name)
Get operation from pool with type safety.