Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
eigenpy
Commits
c2948738
Commit
c2948738
authored
Mar 20, 2020
by
Gabriele Buondonno
Browse files
Remove silly warnings
parent
2bd99645
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/eigenpy/numpy-allocator.hpp
View file @
c2948738
...
@@ -20,7 +20,7 @@ namespace eigenpy
...
@@ -20,7 +20,7 @@ namespace eigenpy
{
{
typedef
typename
SimilarMatrixType
::
Scalar
Scalar
;
typedef
typename
SimilarMatrixType
::
Scalar
Scalar
;
PyArrayObject
*
pyArray
=
(
PyArrayObject
*
)
call_PyArray_SimpleNew
(
nd
,
shape
,
PyArrayObject
*
pyArray
=
(
PyArrayObject
*
)
call_PyArray_SimpleNew
(
static_cast
<
int
>
(
nd
)
,
shape
,
NumpyEquivalentType
<
Scalar
>::
type_code
);
NumpyEquivalentType
<
Scalar
>::
type_code
);
// Copy data
// Copy data
...
@@ -42,7 +42,7 @@ namespace eigenpy
...
@@ -42,7 +42,7 @@ namespace eigenpy
if
(
NumpyType
::
sharedMemory
())
if
(
NumpyType
::
sharedMemory
())
{
{
PyArrayObject
*
pyArray
=
(
PyArrayObject
*
)
call_PyArray_New
(
nd
,
shape
,
PyArrayObject
*
pyArray
=
(
PyArrayObject
*
)
call_PyArray_New
(
static_cast
<
int
>
(
nd
)
,
shape
,
NumpyEquivalentType
<
Scalar
>::
type_code
,
NumpyEquivalentType
<
Scalar
>::
type_code
,
mat
.
data
(),
mat
.
data
(),
NPY_ARRAY_MEMORY_CONTIGUOUS
|
NPY_ARRAY_ALIGNED
);
NPY_ARRAY_MEMORY_CONTIGUOUS
|
NPY_ARRAY_ALIGNED
);
...
@@ -77,7 +77,7 @@ namespace eigenpy
...
@@ -77,7 +77,7 @@ namespace eigenpy
if
(
NumpyType
::
sharedMemory
())
if
(
NumpyType
::
sharedMemory
())
{
{
PyArrayObject
*
pyArray
=
(
PyArrayObject
*
)
call_PyArray_New
(
nd
,
shape
,
PyArrayObject
*
pyArray
=
(
PyArrayObject
*
)
call_PyArray_New
(
static_cast
<
int
>
(
nd
)
,
shape
,
NumpyEquivalentType
<
Scalar
>::
type_code
,
NumpyEquivalentType
<
Scalar
>::
type_code
,
const_cast
<
SimilarMatrixType
&>
(
mat
.
derived
()).
data
(),
const_cast
<
SimilarMatrixType
&>
(
mat
.
derived
()).
data
(),
NPY_ARRAY_MEMORY_CONTIGUOUS_RO
|
NPY_ARRAY_ALIGNED
);
NPY_ARRAY_MEMORY_CONTIGUOUS_RO
|
NPY_ARRAY_ALIGNED
);
...
...
Write
Preview
Supports
Markdown
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