Home
last modified time | relevance | path

Searched refs:demo_array (Results 1 – 5 of 5) sorted by relevance

/third_party/boost/libs/python/example/numpy/
Dufunc.cpp57 …np::ndarray demo_array = np::from_data(arr, np::dtype::get_builtin<int>() , p::make_tuple(4), p::m… in main() local
59 std::cout << "Demo array is " << p::extract <char const * > (p::str(demo_array)) << std::endl ; in main()
61 p::object result_array = inst.attr("__call__")(demo_array) ; in main()
81 … << p::extract <char const * > (p::str(demo_array)) << std::endl << p::extract <char const * > (p:… in main()
83 result_array = inst.attr("__call__")(demo_array,demo_array) ; in main()
/third_party/boost/libs/python/doc/html/numpy/_sources/tutorial/
Dufunc.rst.txt62 np::ndarray demo_array = np::from_data(arr, np::dtype::get_builtin<int>(),
69 std::cout << "Demo array is " << p::extract<char const *>(p::str(demo_array)) << std::endl;
73 p::object result_array = inst.attr("__call__")(demo_array);
109 << p::extract<char const *>(p::str(demo_array)) << std::endl
110 << p::extract<char const *>(p::str(demo_array)) << std::endl;
112 Call the binary ufunc taking demo_array as both inputs ::
114 result_array = inst.attr("__call__")(demo_array,demo_array);
/third_party/boost/libs/python/doc/numpy/tutorial/
Dufunc.rst62 np::ndarray demo_array = np::from_data(arr, np::dtype::get_builtin<int>(),
69 std::cout << "Demo array is " << p::extract<char const *>(p::str(demo_array)) << std::endl;
73 p::object result_array = inst.attr("__call__")(demo_array);
109 << p::extract<char const *>(p::str(demo_array)) << std::endl
110 << p::extract<char const *>(p::str(demo_array)) << std::endl;
112 Call the binary ufunc taking demo_array as both inputs ::
114 result_array = inst.attr("__call__")(demo_array,demo_array);
/third_party/boost/libs/python/doc/numpy/reference/
Dbinary_ufunc.rst108 result_array = inst.attr("__call__")(demo_array,demo_array) ;
/third_party/boost/libs/python/doc/html/numpy/_sources/reference/
Dbinary_ufunc.rst.txt108 result_array = inst.attr("__call__")(demo_array,demo_array) ;