|
Oakfield API Documentation 1.0.0
Numerical core APIs
|
Remainder operator measuring f(warped) - f(reference) with optional accumulation. More...


Go to the source code of this file.
Classes | |
| struct | SimRemainderOperatorConfig |
| Configuration for the remainder operator. More... | |
Typedefs | |
| typedef enum SimRemainderNonlinearity | SimRemainderNonlinearity |
| Available nonlinearities applied before differencing. | |
| typedef enum SimRemainderComplexMode | SimRemainderComplexMode |
| Complex processing mode for remainder operator. | |
| typedef struct SimRemainderOperatorConfig | SimRemainderOperatorConfig |
| Configuration for the remainder operator. | |
Enumerations | |
| enum | SimRemainderNonlinearity { SIM_REMAINDER_NONLINEARITY_IDENTITY = 0 , SIM_REMAINDER_NONLINEARITY_ABS , SIM_REMAINDER_NONLINEARITY_LOG_ABS , SIM_REMAINDER_NONLINEARITY_POWER , SIM_REMAINDER_NONLINEARITY_TANH } |
| Available nonlinearities applied before differencing. More... | |
| enum | SimRemainderComplexMode { SIM_REMAINDER_COMPLEX_MODE_COMPONENT , SIM_REMAINDER_COMPLEX_MODE_POLAR } |
| Complex processing mode for remainder operator. More... | |
Functions | |
| SimResult | sim_add_remainder_operator (struct SimContext *context, const SimRemainderOperatorConfig *config, size_t *out_index) |
| Register a remainder operator that measures f(warped) - f(reference). | |
| SimResult | sim_remainder_config (struct SimContext *context, size_t operator_index, SimRemainderOperatorConfig *out_config) |
| Copy the current remainder configuration from a registered operator. | |
| SimResult | sim_remainder_update (struct SimContext *context, size_t operator_index, const SimRemainderOperatorConfig *config) |
| Replace or renormalize a registered remainder configuration. | |
Remainder operator measuring f(warped) - f(reference) with optional accumulation.
Supports nonlinear transforms (abs, log_abs, power, tanh, identity) applied prior to differencing and works with real or complex fields (component-wise for complex). Weight and bias are applied after computing the residue. Accumulation optionally adds into the existing output field.
Complex field support: component-wise or polar mode (magnitude residue along warped phase).
Available nonlinearities applied before differencing.
| SimResult sim_add_remainder_operator | ( | struct SimContext * | context, |
| const SimRemainderOperatorConfig * | config, | ||
| size_t * | out_index | ||
| ) |
Register a remainder operator that measures f(warped) - f(reference).
| context | Simulation context that will own the operator. | |
| config | Optional remainder configuration; NULL selects normalized defaults. | |
| [out] | out_index | Optional destination for the registered operator index. |
| SimResult sim_remainder_config | ( | struct SimContext * | context, |
| size_t | operator_index, | ||
| SimRemainderOperatorConfig * | out_config | ||
| ) |
Copy the current remainder configuration from a registered operator.
| context | Simulation context containing the operator. | |
| operator_index | Index returned by sim_add_remainder_operator(). | |
| [out] | out_config | Receives the normalized configuration. |
| SimResult sim_remainder_update | ( | struct SimContext * | context, |
| size_t | operator_index, | ||
| const SimRemainderOperatorConfig * | config | ||
| ) |
Replace or renormalize a registered remainder configuration.
Passing NULL for config keeps the current configuration and reapplies normalization. A successful update refreshes symbolic metadata and invalidates the scheduler plan.
| context | Simulation context containing the operator. |
| operator_index | Index of the remainder operator to update. |
| config | Optional replacement remainder configuration. |