Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
2d9220f0
Commit
2d9220f0
authored
Sep 22, 2016
by
Wenzel Jakob
Committed by
GitHub
Sep 22, 2016
Browse files
Merge pull request #423 from drufat/a
Use consistent indentation and typenames in numpy vectorize.
parents
1ee4128c
c250ee51
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
include/pybind11/numpy.h
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