|
Oakfield API Documentation 1.0.0
Numerical core APIs
|
Analytic warp operator (smooth nonlinear deformation) acting on a single field. More...


Go to the source code of this file.
Classes | |
| struct | AnalyticWarpOperatorConfig |
| Configuration for the analytic warp operator. More... | |
Typedefs | |
| typedef enum AnalyticWarpProfile | AnalyticWarpProfile |
| Analytic warp profile enumeration. | |
| typedef enum AnalyticWarpComplexMode | AnalyticWarpComplexMode |
| Complex processing mode for analytic warp. | |
| typedef struct AnalyticWarpOperatorConfig | AnalyticWarpOperatorConfig |
| Configuration for the analytic warp operator. | |
Enumerations | |
| enum | AnalyticWarpProfile { ANALYTIC_WARP_PROFILE_DIGAMMA = 0 , ANALYTIC_WARP_PROFILE_TRIGAMMA = 1 , ANALYTIC_WARP_PROFILE_POWER = 2 , ANALYTIC_WARP_PROFILE_TANH = 3 , ANALYTIC_WARP_PROFILE_HYPEREXP = 4 , ANALYTIC_WARP_PROFILE_QHYPEREXP } |
| Analytic warp profile enumeration. More... | |
| enum | AnalyticWarpComplexMode { ANALYTIC_WARP_COMPLEX_MODE_COMPONENT , ANALYTIC_WARP_COMPLEX_MODE_POLAR } |
| Complex processing mode for analytic warp. More... | |
Functions | |
| SimResult | sim_add_analytic_warp_operator (struct SimContext *context, const AnalyticWarpOperatorConfig *config, size_t *out_index) |
| Register an analytic warp operator on the provided context. | |
| SimResult | sim_analytic_warp_config (struct SimContext *context, size_t operator_index, AnalyticWarpOperatorConfig *out_config) |
| Retrieve the current configuration for an analytic warp operator. | |
| SimResult | sim_analytic_warp_update (struct SimContext *context, size_t operator_index, const AnalyticWarpOperatorConfig *config) |
| Update an existing analytic warp operator with a new configuration. | |
| SimWarpLevel | sim_analytic_warp_effective_level (const AnalyticWarpOperatorConfig *config) |
| Compute the conservative warp-level classification for a config. | |
Analytic warp operator (smooth nonlinear deformation) acting on a single field.
Applies profile-specific analytic transforms (digamma, trigamma, power, tanh) by sampling gradients and accumulating a response term scaled by lambda and delta.
Complex field support: component-wise (Re/Im) or polar mode (magnitude gradient along phase), selectable via config.
| enum AnalyticWarpProfile |
Analytic warp profile enumeration.
| SimResult sim_add_analytic_warp_operator | ( | struct SimContext * | context, |
| const AnalyticWarpOperatorConfig * | config, | ||
| size_t * | out_index | ||
| ) |
Register an analytic warp operator on the provided context.
The implementation copies and normalizes config, validates the target field, and registers either a split operator or an eligible kernel-backed operator.
| context | Simulation context that will own the operator. | |
| config | Optional operator configuration; NULL selects normalized defaults. | |
| [out] | out_index | Optional destination for the registered operator index. |
| SimResult sim_analytic_warp_config | ( | struct SimContext * | context, |
| size_t | operator_index, | ||
| AnalyticWarpOperatorConfig * | out_config | ||
| ) |
Retrieve the current configuration for an analytic warp operator.
| context | Simulation context containing the operator. | |
| operator_index | Registry index of the target operator. | |
| [out] | out_config | Receives the normalized configuration. |
| SimWarpLevel sim_analytic_warp_effective_level | ( | const AnalyticWarpOperatorConfig * | config | ) |
Compute the conservative warp-level classification for a config.
This refines the static schema classification using profile-specific parameters to inform scheduling and dt heuristics without mutating IR. NULL or invalid configs fall back to the conservative high-risk level.
| config | Optional analytic-warp configuration to classify. |
| SimResult sim_analytic_warp_update | ( | struct SimContext * | context, |
| size_t | operator_index, | ||
| const AnalyticWarpOperatorConfig * | config | ||
| ) |
Update an existing analytic warp operator with a new configuration.
Passing NULL for config keeps the current configuration and reapplies normalization. A successful update refreshes symbolic state, operator metadata, and any registered kernel constants, then invalidates the scheduler plan.
| context | Simulation context containing the operator. |
| operator_index | Registry index of the operator to update. |
| config | Optional replacement configuration. |