Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pybind11
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pybind11
Commits
2d9220f0
Commit
2d9220f0
authored
Sep 22, 2016
by
Wenzel Jakob
Committed by
GitHub
Sep 22, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #423 from drufat/a
Use consistent indentation and typenames in numpy vectorize.
parents
1ee4128c
c250ee51
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
include/pybind11/numpy.h
+5
-4
No files found.
include/pybind11/numpy.h
View file @
2d9220f0
...
@@ -911,10 +911,11 @@ detail::vectorize_helper<Return (*) (Args ...), Return, Args...> vectorize(Retur
...
@@ -911,10 +911,11 @@ detail::vectorize_helper<Return (*) (Args ...), Return, Args...> vectorize(Retur
return
vectorize
<
Return
(
*
)
(
Args
...),
Return
,
Args
...
>
(
f
,
f
);
return
vectorize
<
Return
(
*
)
(
Args
...),
Return
,
Args
...
>
(
f
,
f
);
}
}
template
<
typename
func
>
auto
vectorize
(
func
&&
f
)
->
decltype
(
template
<
typename
Func
>
vectorize
(
std
::
forward
<
func
>
(
f
),
(
typename
detail
::
remove_class
<
decltype
(
&
std
::
remove_reference
<
func
>::
type
::
operator
())
>::
type
*
)
nullptr
))
{
auto
vectorize
(
Func
&&
f
)
->
decltype
(
return
vectorize
(
std
::
forward
<
func
>
(
f
),
(
typename
detail
::
remove_class
<
decltype
(
vectorize
(
std
::
forward
<
Func
>
(
f
),
(
typename
detail
::
remove_class
<
decltype
(
&
std
::
remove_reference
<
Func
>::
type
::
operator
())
>::
type
*
)
nullptr
))
{
&
std
::
remove_reference
<
func
>::
type
::
operator
())
>::
type
*
)
nullptr
);
return
vectorize
(
std
::
forward
<
Func
>
(
f
),
(
typename
detail
::
remove_class
<
decltype
(
&
std
::
remove_reference
<
Func
>::
type
::
operator
())
>::
type
*
)
nullptr
);
}
}
NAMESPACE_END
(
pybind11
)
NAMESPACE_END
(
pybind11
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment