Astaroth  3.1
Scalable Multi-GPU Stencil Computations
Loading...
Searching...
No Matches
tinyexpr.h File Reference
#include "func_define.h"
Include dependency graph for tinyexpr.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  te_expr
struct  te_variable

Enumerations

enum  {
  TE_VARIABLE = 0 , TE_FUNCTION0 = 8 , TE_FUNCTION1 , TE_FUNCTION2 ,
  TE_FUNCTION3 , TE_FUNCTION4 , TE_FUNCTION5 , TE_FUNCTION6 ,
  TE_FUNCTION7 , TE_CLOSURE0 = 16 , TE_CLOSURE1 , TE_CLOSURE2 ,
  TE_CLOSURE3 , TE_CLOSURE4 , TE_CLOSURE5 , TE_CLOSURE6 ,
  TE_CLOSURE7 , TE_FLAG_PURE = 32
}

Functions

te_expr * te_compile (const char *expression, const te_variable *variables, int var_count, int *error)
double te_eval (const te_expr *n)
void te_free (te_expr *n)
double te_interp (const char *expression, int *error)
void te_print (const te_expr *n)

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
TE_VARIABLE 
TE_FUNCTION0 
TE_FUNCTION1 
TE_FUNCTION2 
TE_FUNCTION3 
TE_FUNCTION4 
TE_FUNCTION5 
TE_FUNCTION6 
TE_FUNCTION7 
TE_CLOSURE0 
TE_CLOSURE1 
TE_CLOSURE2 
TE_CLOSURE3 
TE_CLOSURE4 
TE_CLOSURE5 
TE_CLOSURE6 
TE_CLOSURE7 
TE_FLAG_PURE 

Function Documentation

◆ te_compile()

te_expr * te_compile ( const char * expression,
const te_variable * variables,
int var_count,
int * error )

◆ te_eval()

double te_eval ( const te_expr * n)

◆ te_free()

void te_free ( te_expr * n)

◆ te_interp()

double te_interp ( const char * expression,
int * error )

◆ te_print()

void te_print ( const te_expr * n)