|
Oakfield API Documentation 1.0.0
Numerical core APIs
|
NeRF-style positional encoding stimulus. More...


Go to the source code of this file.
Classes | |
| struct | SimStimulusPosEncConfig |
| Configuration for NeRF-style positional encoding stimulus bands. More... | |
Typedefs | |
| typedef struct SimStimulusPosEncConfig | SimStimulusPosEncConfig |
| Configuration for NeRF-style positional encoding stimulus bands. | |
Functions | |
| SimResult | sim_add_stimulus_posenc_operator (struct SimContext *context, const SimStimulusPosEncConfig *config, size_t *out_index) |
| Register a positional-encoding stimulus operator. | |
| SimResult | sim_stimulus_posenc_config (struct SimContext *context, size_t operator_index, SimStimulusPosEncConfig *out_config) |
| Copy the current positional-encoding configuration from a registered operator. | |
| SimResult | sim_stimulus_posenc_update (struct SimContext *context, size_t operator_index, const SimStimulusPosEncConfig *config) |
| Replace or renormalize a registered positional-encoding configuration. | |
NeRF-style positional encoding stimulus.
Encodes coordinates with dyadic Fourier bands and injects the summed embedding: e(u, t) = [optional u] + sum_l cos(k_l u - omega t + phase) + i sin(...) where k_l = base_wavenumber * band_growth^l.
| SimResult sim_add_stimulus_posenc_operator | ( | struct SimContext * | context, |
| const SimStimulusPosEncConfig * | config, | ||
| size_t * | out_index | ||
| ) |
Register a positional-encoding stimulus operator.
The implementation copies and normalizes config, then registers a split operator that sums the configured Fourier encoding bands on the target field.
| context | Simulation context that will own the operator. | |
| config | Optional positional-encoding configuration; NULL selects normalized defaults. | |
| [out] | out_index | Optional destination for the registered operator index. |
| SimResult sim_stimulus_posenc_config | ( | struct SimContext * | context, |
| size_t | operator_index, | ||
| SimStimulusPosEncConfig * | out_config | ||
| ) |
Copy the current positional-encoding configuration from a registered operator.
| context | Simulation context containing the operator. | |
| operator_index | Index returned by sim_add_stimulus_posenc_operator(). | |
| [out] | out_config | Receives the operator's normalized configuration. |
| SimResult sim_stimulus_posenc_update | ( | struct SimContext * | context, |
| size_t | operator_index, | ||
| const SimStimulusPosEncConfig * | config | ||
| ) |
Replace or renormalize a registered positional-encoding configuration.
Passing NULL for config keeps the existing 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 positional-encoding operator to update. |
| config | Optional replacement configuration. |