Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
2e2de8c8
Unverified
Commit
2e2de8c8
authored
Aug 13, 2020
by
Henry Schreiner
Committed by
GitHub
Aug 13, 2020
Browse files
fix: add missing signature (#2363)
* fix: add missing signature * fix: add to array_t too
parent
830adda8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
include/pybind11/numpy.h
include/pybind11/numpy.h
+3
-3
No files found.
include/pybind11/numpy.h
View file @
2e2de8c8
...
...
@@ -611,8 +611,8 @@ public:
template
<
typename
T
>
explicit
array
(
ssize_t
count
,
const
T
*
ptr
,
handle
base
=
handle
())
:
array
({
count
},
{},
ptr
,
base
)
{
}
explicit
array
(
const
buffer_info
&
info
)
:
array
(
pybind11
::
dtype
(
info
),
info
.
shape
,
info
.
strides
,
info
.
ptr
)
{
}
explicit
array
(
const
buffer_info
&
info
,
handle
base
=
handle
()
)
:
array
(
pybind11
::
dtype
(
info
),
info
.
shape
,
info
.
strides
,
info
.
ptr
,
base
)
{
}
/// Array descriptor (dtype)
pybind11
::
dtype
dtype
()
const
{
...
...
@@ -858,7 +858,7 @@ public:
if
(
!
m_ptr
)
throw
error_already_set
();
}
explicit
array_t
(
const
buffer_info
&
info
)
:
array
(
info
)
{
}
explicit
array_t
(
const
buffer_info
&
info
,
handle
base
=
handle
()
)
:
array
(
info
,
base
)
{
}
array_t
(
ShapeContainer
shape
,
StridesContainer
strides
,
const
T
*
ptr
=
nullptr
,
handle
base
=
handle
())
:
array
(
std
::
move
(
shape
),
std
::
move
(
strides
),
ptr
,
base
)
{
}
...
...
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