template<typename OpClass , ComputeData InputType, ComputeData OutputType = InputType, typename... Args>
| std::optional< IO< OutputType > > MayaFlux::Yantra::ComputeMatrix::execute |
( |
const InputType & |
input, |
|
|
Args &&... |
args |
|
) |
| |
|
inline |
Execute an operation by creating a new instance.
- Template Parameters
-
| OpClass | Operation class to instantiate and execute |
| InputType | Input data type |
| OutputType | Output data type |
- Parameters
-
| input | Input data |
| args | Constructor arguments for the operation |
- Returns
- Optional containing result or nullopt on failure
Definition at line 132 of file ComputeMatrix.hpp.
133 {
134 auto operation = std::make_shared<OpClass>(std::forward<Args>(args)...);
135 return execute_operation<OpClass, InputType, OutputType>(operation, input);
136 }