|
Oakfield API Documentation 1.0.0
Numerical core APIs
|
Utility operator that clears a real or complex field in place. More...
#include "oakfield/operator_split.h"

Go to the source code of this file.
Classes | |
| struct | ZeroFieldOperatorConfig |
| Configuration for clearing a target field in place. More... | |
Typedefs | |
| typedef struct ZeroFieldOperatorConfig | ZeroFieldOperatorConfig |
| Configuration for clearing a target field in place. | |
Functions | |
| SimResult | sim_add_zero_field_operator (struct SimContext *context, const ZeroFieldOperatorConfig *config, size_t *out_index) |
| Register an in-place zero-field utility operator. | |
| SimResult | sim_zero_field_config (struct SimContext *context, size_t operator_index, ZeroFieldOperatorConfig *out_config) |
| Copy the current configuration from a registered zero-field operator. | |
| SimResult | sim_zero_field_update (struct SimContext *context, size_t operator_index, const ZeroFieldOperatorConfig *config) |
| Update a registered zero-field operator without retargeting it. | |
Utility operator that clears a real or complex field in place.
| SimResult sim_add_zero_field_operator | ( | struct SimContext * | context, |
| const ZeroFieldOperatorConfig * | config, | ||
| size_t * | out_index | ||
| ) |
Register an in-place zero-field utility operator.
The operator clears all elements of the configured field during its split step. The target field must exist at registration time.
| context | Simulation context that will own the operator. | |
| config | Optional zero-field configuration; NULL selects field index 0. | |
| [out] | out_index | Optional destination for the registered operator index. |
| SimResult sim_zero_field_config | ( | struct SimContext * | context, |
| size_t | operator_index, | ||
| ZeroFieldOperatorConfig * | out_config | ||
| ) |
Copy the current configuration from a registered zero-field operator.
| context | Simulation context containing the operator. | |
| operator_index | Index returned by sim_add_zero_field_operator(). | |
| [out] | out_config | Receives the operator configuration. |
| SimResult sim_zero_field_update | ( | struct SimContext * | context, |
| size_t | operator_index, | ||
| const ZeroFieldOperatorConfig * | config | ||
| ) |
Update a registered zero-field operator without retargeting it.
config is required and its field_index must match the registered target. A successful update refreshes symbolic state and invalidates the scheduler plan.
| context | Simulation context containing the operator. |
| operator_index | Index of the zero-field operator to update. |
| config | Replacement configuration with the same field_index. |