From 25aca17550d95ced4c18f48cb3ffbcd88ebd0292 Mon Sep 17 00:00:00 2001 From: conrad Date: Wed, 1 Jul 2026 15:04:22 +1000 Subject: [PATCH] remove redundant code --- include/armadillo_bits/op_vectorise_meat.hpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/include/armadillo_bits/op_vectorise_meat.hpp b/include/armadillo_bits/op_vectorise_meat.hpp index e2f8d5d5..40cf856f 100644 --- a/include/armadillo_bits/op_vectorise_meat.hpp +++ b/include/armadillo_bits/op_vectorise_meat.hpp @@ -114,15 +114,9 @@ op_vectorise_col::apply_direct(Mat_noalias& actual_out, Mat& out = actual_out; - if(is_Mat::value) - { - const plain_unwrap U(expr); - - out.set_size(U.M.n_elem, 1); - - arrayops::copy(out.memptr(), U.M.memptr(), U.M.n_elem); - } - else + // no special handling for T1 = Mat, as that currently can't happen; + // the Mat class uses the Mat_noalias type only for delayed expressions + if(is_subview::value) { const subview& sv = reinterpret_cast< const subview& >(expr);