Cadabra
Computer algebra system for field theory problems
Functions | Variables
Keywords.cc File Reference
#include <unordered_set>
#include "Keywords.hh"

Functions

const char * get_keyword_group (const std::string &name)
 

Variables

const std::unordered_set< std::string > functions
 
const std::unordered_set< std::string > classes
 
const std::unordered_set< std::string > keywords
 

Function Documentation

◆ get_keyword_group()

const char* get_keyword_group ( const std::string &  name)

Variable Documentation

◆ classes

const std::unordered_set<std::string> classes

◆ functions

const std::unordered_set<std::string> functions
Initial value:
= {
"__build_class__", "__import__", "abs", "all", "any", "ascii", "bin",
"callable", "chr", "compile", "delattr", "dir", "divmod", "eval", "exec",
"format", "getattr", "globals", "hasattr", "hash", "hex", "id", "input",
"isinstance", "issubclass", "iter", "len", "locals", "max", "min", "next",
"oct", "open", "ord", "pow", "print", "repr", "round", "setattr", "sorted",
"sum", "vars", "asym", "canonicalise", "collect_components", "collect_factors",
"collect_terms", "combine", "compile_package__", "complete",
"create_empty_scope", "create_scope", "create_scope_from_global", "decompose",
"decompose_product", "distribute", "drop_weight", "einsteinify",
"eliminate_kronecker", "eliminate_metric", "eliminate_vielbein",
"epsilon_to_delta", "evaluate", "expand", "expand_delta", "expand_diracbar",
"expand_power", "explicit_indices", "factor_in", "factor_out", "fierz",
"flatten_sum", "indexsort", "init_ipython", "integrate_by_parts", "join_gamma",
"keep_terms", "keep_weight", "kernel", "lhs", "lower_free_indices",
"lr_tensor", "map_sympy", "meld", "order", "product_rule", "properties",
"raise_free_indices", "reduce_delta", "rename_dummies", "replace_match",
"rewrite_indices", "rhs", "simplify", "sort_product", "sort_spinors",
"sort_sum", "split_gamma", "split_index", "substitute", "sym", "tab_dimension",
"take_match", "terms", "tree", "untrace", "unwrap", "unzoom", "vary",
"young_project", "young_project_product", "young_project_tensor", "zoom",
}

◆ keywords

const std::unordered_set<std::string> keywords
Initial value:
= {
"False", "None", "True", "and", "as", "assert", "break", "class", "continue",
"def", "del", "elif", "else", "except", "finally", "for", "from", "global",
"if", "import", "in", "is", "lambda", "nonlocal", "not", "or", "pass", "raise",
"return", "try", "while", "with", "yield",
}