Oakfield API Documentation 1.0.0
Numerical core APIs
Loading...
Searching...
No Matches
operator_identity.h File Reference

Core-owned operator identity metadata shared by execution and IR. More...

#include <stdbool.h>
Include dependency graph for operator_identity.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef enum SimWarpLevel SimWarpLevel
 Public classification for analytic warp operators.
 
typedef enum SimIROpcode SimIROpcode
 Semantic operator category opcodes for KernelIR nodes.
 

Enumerations

enum  SimWarpLevel { SIM_WARP_LEVEL_NONE = 0 , SIM_WARP_LEVEL_LEVEL0 , SIM_WARP_LEVEL_LEVEL1 , SIM_WARP_LEVEL_LEVEL2 }
 Public classification for analytic warp operators. More...
 
enum  SimIROpcode {
  OAK_OP_DIFF = 0 , OAK_OP_CONV , OAK_OP_DISP , OAK_OP_DIFFUSE ,
  OAK_OP_WARP , OAK_OP_NOISE , OAK_OP_FLOW , OAK_OP_MISC ,
  OAK_OP_CORE
}
 Semantic operator category opcodes for KernelIR nodes. More...
 

Functions

const char * sim_ir_opcode_name (SimIROpcode opcode)
 Return the canonical lowercase name for a semantic opcode.
 
bool sim_ir_opcode_from_string (const char *text, SimIROpcode *out_opcode)
 Parse a semantic opcode name into its enum value.
 

Detailed Description

Core-owned operator identity metadata shared by execution and IR.

Enumeration Type Documentation

◆ SimIROpcode

Semantic operator category opcodes for KernelIR nodes.

Enumerator
OAK_OP_DIFF 

Differential operator category.

OAK_OP_CONV 

Convolution operator category.

OAK_OP_DISP 

Dispersion operator category.

OAK_OP_DIFFUSE 

Diffusion/dissipation operator category.

OAK_OP_WARP 

Analytic warp operator category.

OAK_OP_NOISE 

Stochastic/noise operator category.

OAK_OP_FLOW 

Flow/advection operator category.

OAK_OP_MISC 

Miscellaneous operator category.

OAK_OP_CORE 

Core/runtime operator category.

◆ SimWarpLevel

Public classification for analytic warp operators.

Enumerator
SIM_WARP_LEVEL_NONE 

Not a warp or not classified.

SIM_WARP_LEVEL_LEVEL0 

Pure geometric/diffeomorphic warp.

SIM_WARP_LEVEL_LEVEL1 

Analytic monotonic warp.

SIM_WARP_LEVEL_LEVEL2 

Potentially non-monotonic or singular warp.

Function Documentation

◆ sim_ir_opcode_from_string()

bool sim_ir_opcode_from_string ( const char *  text,
SimIROpcode out_opcode 
)

Parse a semantic opcode name into its enum value.

The parser accepts canonical names such as "diffuse" and optional "oak_op_" prefixes.