Cadabra
Computer algebra system for field theory problems
py_kernel.hh
Go to the documentation of this file.
1 #pragma once
2 
3 #include <pybind11/pybind11.h>
4 
5 #include "../Kernel.hh"
6 
7 namespace cadabra {
8 
70  Kernel *create_scope();
71  Kernel *create_scope_from_global();
72  Kernel *create_empty_scope();
73 
81  void inject_defaults(Kernel*);
82 
86  Kernel *get_kernel_from_scope();
87 
88 
89  void init_kernel(pybind11::module& m);
90 
91  }
cadabra::get_kernel_from_scope
Kernel * get_kernel_from_scope()
Get a pointer to the currently visible kernel.
Definition: py_kernel.cc:37
cadabra::create_scope_from_global
Kernel * create_scope_from_global()
Definition: py_kernel.cc:24
cadabra::create_empty_scope
Kernel * create_empty_scope()
Definition: py_kernel.cc:31
cadabra::init_kernel
void init_kernel(pybind11::module &m)
Definition: py_kernel.cc:132
cadabra::create_scope
Kernel * create_scope()
Setup of kernels in current scope, callable from Python.
Definition: py_kernel.cc:17
cadabra
Functions to handle the exchange properties of two or more symbols in a product.
Definition: Adjform.cc:80
cadabra::inject_defaults
void inject_defaults(Kernel *k)
Inject properties directly into the Kernel, even if the kernel is not yet on the Python stack (needed...
Definition: py_kernel.cc:62