Specialized enable_borrowed_ranges for VectorwiseOp class range iteration

libeigen/eigen!2127

Closes #2882
This commit is contained in:
Blake
2026-02-15 10:31:33 -05:00
committed by Rasmus Munk Larsen
parent 1a2b80727c
commit d0654a201b
4 changed files with 55 additions and 6 deletions

View File

@@ -241,11 +241,11 @@ EIGEN_DECLARE_TEST(vectorwiseop) {
CALL_SUBTEST_3(vectorwiseop_array(ArrayXXf(3, 4)));
CALL_SUBTEST_4(vectorwiseop_matrix(Matrix4cf()));
CALL_SUBTEST_5(vectorwiseop_matrix(Matrix4f()));
CALL_SUBTEST_5(vectorwiseop_matrix(Vector4f()));
CALL_SUBTEST_5(vectorwiseop_matrix(Matrix<float, 4, 5>()));
CALL_SUBTEST_6(vectorwiseop_matrix(
CALL_SUBTEST_6(vectorwiseop_matrix(Vector4f()));
CALL_SUBTEST_7(vectorwiseop_matrix(Matrix<float, 4, 5>()));
CALL_SUBTEST_8(vectorwiseop_matrix(
MatrixXd(internal::random<int>(1, EIGEN_TEST_MAX_SIZE), internal::random<int>(1, EIGEN_TEST_MAX_SIZE))));
CALL_SUBTEST_7(vectorwiseop_matrix(VectorXd(internal::random<int>(1, EIGEN_TEST_MAX_SIZE))));
CALL_SUBTEST_7(vectorwiseop_matrix(RowVectorXd(internal::random<int>(1, EIGEN_TEST_MAX_SIZE))));
CALL_SUBTEST_8(vectorwiseop_mixedscalar());
CALL_SUBTEST_9(vectorwiseop_matrix(VectorXd(internal::random<int>(1, EIGEN_TEST_MAX_SIZE))));
CALL_SUBTEST_10(vectorwiseop_matrix(RowVectorXd(internal::random<int>(1, EIGEN_TEST_MAX_SIZE))));
CALL_SUBTEST_11(vectorwiseop_mixedscalar());
}