Unverified Commit 1fe931f0 authored by Wilson Jallet's avatar Wilson Jallet Committed by GitHub
Browse files

numpy-allocator: remove useless variable def



Co-authored-by: Justin Carpentier's avatarJustin Carpentier <justin.carpentier@inria.fr>
parent 89da3015
Pipeline #18577 passed with stage
in 19 minutes and 30 seconds
......@@ -70,8 +70,7 @@ struct NumpyAllocator<Eigen::Ref<MatType, Options, Stride> > {
if (NumpyType::sharedMemory()) {
const int Scalar_type_code = Register::getTypeCode<Scalar>();
const npy_int R = (npy_int)mat.rows();
const bool reverse_strides = MatType::IsRowMajor || (R == 1);
const bool reverse_strides = MatType::IsRowMajor || (mat.rows() == 1);
Eigen::DenseIndex inner_stride = reverse_strides ? mat.outerStride()
: mat.innerStride(),
outer_stride = reverse_strides ? mat.innerStride()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment