FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cpp-python-binding-benchmark/src/py-pybind11/pyvec2.cpp at main · yanto77/cpp-python-binding-benchmark · GitHub
yanto77
cpp-python-binding-benchmark
Repository navigation
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
cpp-python-binding-benchmark
/
src
/
py-pybind11
/
pyvec2.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
11 lines (10 loc) · 281 Bytes
Breadcrumbs
cpp-python-binding-benchmark
/
src
/
py-pybind11
/
pyvec2.cpp
Copy path
File metadata and controls
11 lines (10 loc) · 281 Bytes
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
#
include
"
cpp-lib/mandelbrot.h
"
#
include
<
pybind11/pybind11.h
>
namespace
py
=
pybind11;
void
init_pyvec2
(py::module_& m)
{
py::class_<vec2u>(m,
"
PyVec2
"
)
.
def
(py::init<
size_t
,
size_t
>())
.
def_readwrite
(
"
x
"
, &vec2u::x)
.
def_readwrite
(
"
y
"
, &vec2u::y);
}
Back
|
FazBrowse Home
|
New Git URL