mirror of
https://github.com/RYDE-WORK/pybind11.git
synced 2026-02-02 13:15:52 +08:00
quench warnings in eigen.h
This commit is contained in:
parent
678d59d21f
commit
5ba89c340c
@ -73,7 +73,7 @@ struct type_caster<Type, typename std::enable_if<is_eigen_dense<Type>::value>::t
|
|||||||
|
|
||||||
auto strides = Strides(info.strides[0] / sizeof(Scalar));
|
auto strides = Strides(info.strides[0] / sizeof(Scalar));
|
||||||
|
|
||||||
Strides::Index n_elts = info.shape[0];
|
Strides::Index n_elts = (Strides::Index) info.shape[0];
|
||||||
Strides::Index unity = 1;
|
Strides::Index unity = 1;
|
||||||
|
|
||||||
value = Eigen::Map<Type, 0, Strides>(
|
value = Eigen::Map<Type, 0, Strides>(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user