Skip to content
Snippets Groups Projects
Unverified Commit 1fe931f0 authored by Wilson Jallet's avatar Wilson Jallet Committed by GitHub
Browse files

numpy-allocator: remove useless variable def

parent 89da3015
No related branches found
No related tags found
No related merge requests found
Pipeline #18577 passed with warnings
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment