FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Hydra.Python/src/PyBindings.cpp at master · MultithreadCorner/Hydra.Python · GitHub
MultithreadCorner
/
Hydra.Python
Public
Notifications
You must be signed in to change notification settings
Fork
2
Star
14
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
Hydra.Python
/
src
/
PyBindings.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
120 lines (103 loc) · 4.47 KB
Breadcrumbs
Hydra.Python
/
src
/
PyBindings.cpp
Copy path
File metadata and controls
120 lines (103 loc) · 4.47 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
/*
----------------------------------------------------------------------------
*
* Copyright (C) 2017 Antonio Augusto Alves Junior
*
*
* This file is part of the Hydra.Python Analysis Framework.
*
* Hydra.Python is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Hydra.Python is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Hydra.Python. If not, see <http://www.gnu.org/licenses/>.
*
*---------------------------------------------------------------------------
*/
/*
* PyBindings.cpp
*
* Created on: July 30, 2017
* Author: Antonio Augusto Alves Junior
*/
/*
* @file
*
* @ingroup
*
* @brief
*
* @todo
*
*/
//
pybind11
#
include
<
pybind11/pybind11.h
>
#
include
<
pybind11/stl.h
>
//
Hydra.Python helpers
#
include
<
add_object.h
>
#
include
<
bind_container.h
>
#
include
<
casters.h
>
#
include
<
typedefs.h
>
#
include
<
make_opaque.h
>
//
Hydra.Python binded Hydra classes
#
include
<
PyRandom.h
>
#
include
<
PyEvents.h
>
#
include
<
PyVector3R.h
>
#
include
<
PyVector4R.h
>
#
include
<
PyPhaseSpace.h
>
namespace
py
=
pybind11;
namespace
hypy
=
hydra_python;
PYBIND11_MODULE
(HydraPython, m) {
hypy::add_object< hydra::Vector3R >(m);
hypy::add_object< hydra::Vector4R >(m);
hypy::add_object< hydra::Random<thrust::random::default_random_engine> >(m);
hypy::add_object< hydra::Events<
4
, hydra::host::
sys_t
> >(m);
hypy::add_object< hydra::PhaseSpace<
4
, thrust::random::default_random_engine> >(m);
//
decay container host
hypy::bind_vector< hypy::host_decays_2>(m,
"
host_decays_2
"
);
hypy::bind_vector< hypy::host_decays_3>(m,
"
host_decays_3
"
);
hypy::bind_vector< hypy::host_decays_4>(m,
"
host_decays_4
"
);
hypy::bind_vector< hypy::host_decays_5>(m,
"
host_decays_5
"
);
hypy::bind_vector< hypy::host_decays_6>(m,
"
host_decays_6
"
);
hypy::bind_vector< hypy::host_decays_7>(m,
"
host_decays_7
"
);
hypy::bind_vector< hypy::host_decays_8>(m,
"
host_decays_8
"
);
hypy::bind_vector< hypy::host_decays_9>(m,
"
host_decays_9
"
);
hypy::bind_vector< hypy::host_decays_10>(m,
"
host_decays_10
"
);
//
decay container device
hypy::bind_vector< hypy::device_decays_2>(m,
"
device_decays_2
"
);
hypy::bind_vector< hypy::device_decays_3>(m,
"
device_decays_3
"
);
hypy::bind_vector< hypy::device_decays_4>(m,
"
device_decays_4
"
);
hypy::bind_vector< hypy::device_decays_5>(m,
"
device_decays_5
"
);
hypy::bind_vector< hypy::device_decays_6>(m,
"
device_decays_6
"
);
hypy::bind_vector< hypy::device_decays_7>(m,
"
device_decays_7
"
);
hypy::bind_vector< hypy::device_decays_8>(m,
"
device_decays_8
"
);
hypy::bind_vector< hypy::device_decays_9>(m,
"
device_decays_9
"
);
hypy::bind_vector< hypy::device_decays_10>(m,
"
device_decays_10
"
);
//
host vectors
hypy::bind_vector< hypy::host_vector_float >(m,
"
host_vector_float
"
);
hypy::bind_vector< hypy::host_vector_float2 >(m,
"
host_vector_float2
"
);
hypy::bind_vector< hypy::host_vector_float3 >(m,
"
host_vector_float3
"
);
hypy::bind_vector< hypy::host_vector_float4 >(m,
"
host_vector_float4
"
);
hypy::bind_vector< hypy::host_vector_float5 >(m,
"
host_vector_float5
"
);
hypy::bind_vector< hypy::host_vector_float6 >(m,
"
host_vector_float6
"
);
hypy::bind_vector< hypy::host_vector_float7 >(m,
"
host_vector_float7
"
);
hypy::bind_vector< hypy::host_vector_float8 >(m,
"
host_vector_float8
"
);
hypy::bind_vector< hypy::host_vector_float9 >(m,
"
host_vector_float9
"
);
hypy::bind_vector< hypy::host_vector_float10>(m,
"
host_vector_float10
"
);
//
device vector
hypy::bind_vector< hypy::device_vector_float >(m,
"
device_vector_float
"
);
hypy::bind_vector< hypy::device_vector_float2 >(m,
"
device_vector_float2
"
);
hypy::bind_vector< hypy::device_vector_float3 >(m,
"
device_vector_float3
"
);
hypy::bind_vector< hypy::device_vector_float4 >(m,
"
device_vector_float4
"
);
hypy::bind_vector< hypy::device_vector_float5 >(m,
"
device_vector_float5
"
);
hypy::bind_vector< hypy::device_vector_float6 >(m,
"
device_vector_float6
"
);
hypy::bind_vector< hypy::device_vector_float7 >(m,
"
device_vector_float7
"
);
hypy::bind_vector< hypy::device_vector_float8 >(m,
"
device_vector_float8
"
);
hypy::bind_vector< hypy::device_vector_float9 >(m,
"
device_vector_float9
"
);
hypy::bind_vector< hypy::device_vector_float10>(m,
"
device_vector_float10
"
);
}
Back
|
FazBrowse Home
|
New Git URL