|
Oakfield API Documentation 1.0.0
Numerical core APIs
|
Mask/apply operator to gate a field by a mask. More...


Go to the source code of this file.
Classes | |
| struct | SimMaskOperatorConfig |
| Configuration for the mask/apply operator. More... | |
Typedefs | |
| typedef enum SimMaskMode | SimMaskMode |
| Mask application mode. | |
| typedef struct SimMaskOperatorConfig | SimMaskOperatorConfig |
| Configuration for the mask/apply operator. | |
Enumerations | |
| enum | SimMaskMode { SIM_MASK_MODE_APPLY = 0 , SIM_MASK_MODE_INVERT } |
| Mask application mode. | |
Functions | |
| SimResult | sim_add_mask_operator (struct SimContext *context, const SimMaskOperatorConfig *config, size_t *out_index) |
| Register a mask/apply operator with the provided configuration. | |
| SimResult | sim_mask_config (struct SimContext *context, size_t operator_index, SimMaskOperatorConfig *out_config) |
| Retrieve the configuration currently bound to a mask operator. | |
| SimResult | sim_mask_update (struct SimContext *context, size_t operator_index, const SimMaskOperatorConfig *config) |
| Update an existing mask operator in-place. | |
Mask/apply operator to gate a field by a mask.
| SimResult sim_add_mask_operator | ( | struct SimContext * | context, |
| const SimMaskOperatorConfig * | config, | ||
| size_t * | out_index | ||
| ) |
Register a mask/apply operator with the provided configuration.
| context | Simulation context that will own the operator. | |
| config | Optional mask configuration; NULL selects normalized defaults. | |
| [out] | out_index | Optional destination for the registered operator index. |
| SimResult sim_mask_config | ( | struct SimContext * | context, |
| size_t | operator_index, | ||
| SimMaskOperatorConfig * | out_config | ||
| ) |
Retrieve the configuration currently bound to a mask operator.
| context | Simulation context containing the operator. | |
| operator_index | Index returned by sim_add_mask_operator(). | |
| [out] | out_config | Receives the normalized configuration. |
| SimResult sim_mask_update | ( | struct SimContext * | context, |
| size_t | operator_index, | ||
| const SimMaskOperatorConfig * | config | ||
| ) |
Update an existing mask operator in-place.
Passing NULL for config keeps the current configuration and reapplies normalization. A successful update refreshes symbolic state and invalidates the scheduler plan.
| context | Simulation context containing the operator. |
| operator_index | Index of the mask operator to update. |
| config | Optional replacement configuration. |