Cadabra
Computer algebra system for field theory problems
Loading...
Searching...
No Matches
py_helpers.hh
Go to the documentation of this file.
1#pragma once
2
3#include <pybind11/pybind11.h>
4#include <memory>
5
6namespace cadabra {
7
8 pybind11::object get_locals();
9 pybind11::object get_globals();
10
13 std::string install_prefix_of_module();
14
17 bool scope_has(const pybind11::dict& dict, const std::string& obj);
18
21 std::string read_manual(pybind11::module& m, const char* category, const char* name);
22
23}
Functions to handle the exchange properties of two or more symbols in a product.
Definition Adjform.cc:83
py::object get_globals()
Definition py_helpers.cc:21
py::object get_locals()
Definition py_helpers.cc:16
std::string install_prefix_of_module()
Get the installation prefix of the binary cadabra2 module, typically something like /usr/lib/pythonX....
Definition py_helpers.cc:44
std::string read_manual(pybind11::module &m, const char *category, const char *name)
Return the manual page for the category ("property"/"algorithm") and given name.
Definition py_helpers.cc:67
void set(rset_t::iterator &num, multiplier_t fac)
Definition Storage.cc:1064
bool scope_has(const py::dict &dict, const std::string &obj)
Definition py_helpers.cc:26