|
Oakfield API Documentation 1.0.0
Numerical core APIs
|
History-based fractional memory operator applying a fractional derivative of order q. More...
#include "oakfield/operator_split.h"

Go to the source code of this file.
Classes | |
| struct | FractionalMemoryOperatorConfig |
| Configuration parameters for the fractional memory split operator. More... | |
Typedefs | |
| typedef struct FractionalMemoryOperatorConfig | FractionalMemoryOperatorConfig |
| Configuration parameters for the fractional memory split operator. | |
Functions | |
| SimResult | sim_add_fractional_memory_operator (struct SimContext *context, const FractionalMemoryOperatorConfig *config, size_t *out_index) |
| Register a fractional memory operator with the provided configuration. | |
| SimResult | sim_fractional_memory_config (struct SimContext *context, size_t operator_index, FractionalMemoryOperatorConfig *out_config) |
| Copy the current fractional memory configuration from a registered operator. | |
| SimResult | sim_fractional_memory_update (struct SimContext *context, size_t operator_index, const FractionalMemoryOperatorConfig *config) |
| Replace or renormalize an existing fractional memory operator. | |
History-based fractional memory operator applying a fractional derivative of order q.
Maintains a rolling memory of past states to approximate fractional dynamics. Supports real and complex fields through component-wise accumulation.
| SimResult sim_add_fractional_memory_operator | ( | struct SimContext * | context, |
| const FractionalMemoryOperatorConfig * | config, | ||
| size_t * | out_index | ||
| ) |
Register a fractional memory operator with the provided configuration.
| 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_fractional_memory_config | ( | struct SimContext * | context, |
| size_t | operator_index, | ||
| FractionalMemoryOperatorConfig * | out_config | ||
| ) |
Copy the current fractional memory configuration from a registered operator.
| context | Simulation context containing the operator. | |
| operator_index | Index returned by sim_add_fractional_memory_operator(). | |
| [out] | out_config | Receives the normalized configuration. |
| SimResult sim_fractional_memory_update | ( | struct SimContext * | context, |
| size_t | operator_index, | ||
| const FractionalMemoryOperatorConfig * | config | ||
| ) |
Replace or renormalize an existing fractional memory operator.
Passing NULL for config keeps the current configuration and reapplies normalization. If order or memory_steps change, coefficients/history are marked for rebuild before the next apply.
| context | Simulation context containing the operator. |
| operator_index | Index of the fractional memory operator to update. |
| config | Optional replacement configuration. |