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__", "_displayhook", "abs", "all", "any", "ascii",
"asym", "bin", "breakpoint", "callable", "canonicalise", "cdb2python",
"cdb2python_string", "chr", "collect_components", "collect_factors",
"collect_terms", "combine", "compile", "compile_package__", "complete",
"create_empty_scope", "create_scope", "create_scope_from_global", "decompose",
"decompose_product", "delattr", "diff", "dir", "display", "distribute",
"divmod", "drop_weight", "einsteinify", "eliminate_kronecker",
"eliminate_metric", "eliminate_vielbein", "epsilon_to_delta", "eval",
"evaluate", "exec", "expand", "expand_delta", "expand_diracbar",
"expand_dummies", "expand_power", "explicit_indices", "factor", "factor_in",
"factor_out", "fierz", "flatten_sum", "format", "getattr", "globals",
"hasattr", "hash", "hex", "id", "indexsort", "init_ipython", "input",
"integrate", "integrate_by_parts", "isinstance", "issubclass", "iter",
"join_gamma", "keep_terms", "keep_weight", "kernel", "latex", "len", "lhs",
"locals", "lower_free_indices", "lr_tensor", "map_sympy", "max", "meld", "min",
"next", "oct", "open", "ord", "order", "post_process", "pow", "print",
"product_rule", "properties", "raise_free_indices", "reduce_delta",
"remember_display_hook", "rename_dummies", "replace_match", "repr",
"rewrite_indices", "rhs", "round", "save_history", "setattr", "simplify",
"slot_asym", "slot_sym", "sort_product", "sort_spinors", "sort_sum", "sorted",
"split_gamma", "split_index", "sqrt", "substitute", "sum", "sym", "symbols",
"tab_dimension", "take_match", "terms", "tree", "trigsimp", "untrace",
"unwrap", "unzoom", "user_config_dir", "user_data_dir", "vars", "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", "async", "await", "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",
}