Create and add an operation to this matrix.
- Template Parameters
-
| OpClass | Operation class type |
| Args | Constructor argument types |
- Parameters
-
| name | Unique name within this matrix |
| args | Constructor arguments |
- Returns
- Shared pointer to the created operation
Definition at line 74 of file ComputeMatrix.hpp.
75 {
76 auto operation = std::make_shared<OpClass>(std::forward<Args>(args)...);
78 return operation;
79 }
80 return nullptr;
81 }
OperationPool m_operations
bool add(const std::string &name, std::shared_ptr< OpClass > op)
Add named operation to pool.