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
a3906778
Commit
a3906778
authored
Aug 27, 2016
by
Wenzel Jakob
Browse files
minor: renamed argument in array constructor
parent
35540ea3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
include/pybind11/numpy.h
include/pybind11/numpy.h
+2
-2
No files found.
include/pybind11/numpy.h
View file @
a3906778
...
...
@@ -234,8 +234,8 @@ public:
array
(
const
pybind11
::
dtype
&
dt
,
const
std
::
vector
<
size_t
>&
shape
,
void
*
ptr
=
nullptr
)
:
array
(
dt
,
shape
,
default_strides
(
shape
,
dt
.
itemsize
()),
ptr
)
{
}
array
(
const
pybind11
::
dtype
&
dt
,
size_t
size
,
void
*
ptr
=
nullptr
)
:
array
(
dt
,
std
::
vector
<
size_t
>
{
size
},
ptr
)
{
}
array
(
const
pybind11
::
dtype
&
dt
,
size_t
count
,
void
*
ptr
=
nullptr
)
:
array
(
dt
,
std
::
vector
<
size_t
>
{
count
},
ptr
)
{
}
template
<
typename
T
>
array
(
const
std
::
vector
<
size_t
>&
shape
,
const
std
::
vector
<
size_t
>&
strides
,
T
*
ptr
)
...
...
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