diff options
Diffstat (limited to 'src/types.h')
-rw-r--r-- | src/types.h | 34 |
1 files changed, 27 insertions, 7 deletions
diff --git a/src/types.h b/src/types.h index d30840e..00a34ac 100644 --- a/src/types.h +++ b/src/types.h @@ -1,5 +1,5 @@ /* -Copyright 2015 Ian Jauslin +Copyright 2015-2022 Ian Jauslin Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -71,6 +71,15 @@ typedef struct Str_Array{ int memory; } Str_Array; +// tree +typedef struct Tree Tree; +struct Tree{ + Char_Array root_label; + Tree* children; + int length; + int memory; +}; + // polynomial typedef struct Polynomial{ Int_Array* monomials; @@ -133,13 +142,21 @@ typedef struct Identities{ int memory; } Identities; -// symbolic expressions -typedef struct Symbols{ +// virtual_fields +typedef struct Virtual_fields{ int* indices; Polynomial* expr; int length; int memory; -} Symbols; +} Virtual_fields; + +// variables used in symbolic expressions +typedef struct Variables{ + Char_Array* var_names; + Tree* symbol_trees; + int length; + int memory; +} Variables; // groups of independent fields typedef struct Groups{ @@ -159,10 +176,10 @@ typedef struct Fields_Table{ // identities between fields Identities ids; // symbolic expressions (commuting) - Symbols symbols; - // list of anti-commuting variables (fields or symbols) + Virtual_fields virtual_fields; + // list of anti-commuting variables Int_Array fermions; - // list of non-commuting variables (fields or symbols) + // list of non-commuting variables Int_Array noncommuting; } Fields_Table; @@ -187,6 +204,8 @@ typedef struct Id_Table{ typedef struct Meankondo_Options{ int threads; int chain; + int print_progress; + int group_poly; } Meankondo_Options; typedef struct Numkondo_Options{ @@ -203,6 +222,7 @@ typedef struct Meantools_Options{ Int_Array deriv_vars; Char_Array eval_rccstring; int chain; + Char_Array namespace; mpfr_prec_t mpfr_prec; mpfr_exp_t mpfr_emax; } Meantools_Options; |