/gem5/util/ccdrv/ |
H A D | devtime.c | 38 #include <linux/module.h>
|
/gem5/ext/pybind11/include/pybind11/ |
H A D | eval.h | 55 auto expr = (s[0] == '\n') ? str(module::import("textwrap").attr("dedent")(s))
|
H A D | pybind11.h | 707 "when compiling your pybind11 module."; 789 class module : public object { class in inherits:object 791 PYBIND11_OBJECT_DEFAULT(module, object, PyModule_Check) 793 /// Create a new top-level Python module with the given name and docstring 794 explicit module(const char *name, const char *doc = nullptr) { function in class:cpp_function::module 808 pybind11_fail("Internal error in module::module()"); 813 Create Python binding for a new function within the module scope. ``Func`` 818 module &def(const char *name_, Func &&f, const Extra& ... extra) { 833 py::module [all...] |
H A D | eigen.h | 552 object sparse_module = module::import("scipy.sparse"); 583 object matrix_type = module::import("scipy.sparse").attr(
|
H A D | numpy.h | 220 module m = module::import("numpy.core.multiarray"); 499 static PyObject *obj = module::import("numpy.core._internal")
|
/gem5/ext/pybind11/tests/ |
H A D | test_local_bindings.cpp | 3 binding local to the module in which it is defined. 31 // The main pybind11 test module is loaded first, so this registration will succeed (the second 44 auto main = py::module::import("pybind11_tests");
|
H A D | test_numpy_vectorize.cpp | 20 try { py::module::import("numpy"); }
|
H A D | test_stl_binders.cpp | 98 try { py::module::import("numpy"); }
|
H A D | test_methods_and_attributes.cpp | 267 auto emna = py::reinterpret_borrow<py::class_<ExampleMandA>>(py::module::import("pybind11_tests.methods_and_attributes").attr("ExampleMandA")); 272 auto emna = py::reinterpret_borrow<py::class_<ExampleMandA>>(py::module::import("pybind11_tests.methods_and_attributes").attr("ExampleMandA")); 394 auto m = py::module::import("pybind11_tests"); 398 auto m = py::module::import("pybind11_tests");
|
H A D | test_exceptions.cpp | 146 py::module::import("nonexistent");
|
H A D | test_numpy_array.cpp | 25 py::module np = py::module::import("numpy"); 136 try { py::module::import("numpy"); }
|
H A D | test_virtual_functions.cpp | 186 void initialize_inherited_virtuals(py::module &m); 443 void initialize_inherited_virtuals(py::module &m) {
|
H A D | test_class.cpp | 145 auto mod = py::module::import("__main__"); 150 auto mod = py::module::import("__main__"); 252 // definition in a different compilation unit within the same module:
|
H A D | test_eigen.cpp | 322 py::module::import("numpy").attr("ones")(10); 326 py::module::import("numpy").attr("ones")(10);
|
H A D | constructor_stats.h | 123 py::module::import("gc").attr("collect")();
|
H A D | test_pytypes.cpp | 275 auto py_stderr = py::module::import("sys").attr("stderr");
|
H A D | test_factory_constructors.cpp | 144 py::module m_tag = m.def_submodule("tag");
|
H A D | test_numpy_dtypes.cpp | 258 try { py::module::import("numpy"); }
|
/gem5/ext/ply/ply/ |
H A D | lex.py | 76 # logging module. 479 # module, it may be necessary to break the master regex into separate expressions. 861 # lex(module) 863 # Build all of the regular expression rules from definitions in the supplied module 865 def lex(module=None,object=None,debug=0,optimize=0,lextab="lextab",reflags=0,nowarn=0,outputdir="", debuglog=None, errorlog=None): 880 # Get the module dictionary used for the lexer 881 if object: module = object 883 if module: 884 _items = [(k,getattr(module,k)) for k in dir(module)] [all...] |
H A D | yacc.py | 56 # To make this module run fast, a *LOT* of work has been put into 75 tab_module = 'parsetab' # Default name of the table module 112 # logging module. PLY will use this by default to create things 295 # If no lexer was given, we will try to use the lex module 606 # If no lexer was given, we will try to use the lex module 878 # If no lexer was given, we will try to use the lex module 1821 def read_table(self,module): 1822 if isinstance(module,types.ModuleType): 1823 parsetab = module 1826 exec("import %s as parsetab" % module) [all...] |
/gem5/ext/ply/test/ |
H A D | testlex.py | 33 def run_import(module): 34 code = "import "+module 36 del sys.modules[module]
|
/gem5/src/unittest/ |
H A D | stattest.cc | 676 stattest_init_pybind(py::module &m_internal) 678 py::module m = m_internal.def_submodule("stattest");
|
/gem5/ext/pybind11/include/pybind11/detail/ |
H A D | common.h | 224 "Python version mismatch: module was compiled for Python %s, " \ 244 imports a plugin library. Please create a `module` in the function body and return 250 pybind11::module m("example", "pybind11 example plugin"); 268 imports an extension module. The module name is given as the fist argument and it 270 `py::module` which can be used to initialize the module. 275 m.doc() = "pybind11 example module"; 284 static void PYBIND11_CONCAT(pybind11_init_, name)(pybind11::module &); \ 287 auto m = pybind11::module(PYBIND11_TOSTRIN [all...] |