2014-05-21 23:01:27 +02:00
|
|
|
from wrap_generator import *
|
|
|
|
|
|
|
|
# The module
|
|
|
|
module = module_(full_name = "pytriqs.wrap_test.test_g", doc = " Doc of my_module ")
|
|
|
|
module.add_include("<triqs/../pytriqs/wrap_test/g.hpp>")
|
|
|
|
module.add_include("<pytriqs/converters/gf.hpp>")
|
|
|
|
|
|
|
|
module.add_function (name = "make_bgf", signature = "block_gf_view<imfreq> (double a)", doc = "DOC of print_a")
|
|
|
|
module.add_function (name = "pass_bgf", signature = "void (block_gf_view<imfreq> g) ", doc = "DOC of print_a")
|
|
|
|
|
2014-05-22 21:29:29 +02:00
|
|
|
module.add_function (name = "make_sgf", signature = "gf_view<imfreq,scalar_valued> (double a)", doc = "DOC of print_a")
|
|
|
|
module.add_function (name = "pass_sgf", signature = "void (gf_view<imfreq,scalar_valued> g)", doc = "DOC of print_a")
|
|
|
|
|
|
|
|
|
2014-05-21 23:01:27 +02:00
|
|
|
if __name__ == '__main__' :
|
2014-05-30 19:21:38 +02:00
|
|
|
module.generate_code()
|
2014-05-21 23:01:27 +02:00
|
|
|
|