Fix direct index aliased assignment.

This commit is contained in:
Antonio Sánchez
2025-08-25 18:17:18 +00:00
committed by Rasmus Munk Larsen
parent 1a45d2168e
commit 4ae5647355
2 changed files with 16 additions and 0 deletions

View File

@@ -308,6 +308,12 @@ struct unary_evaluator<IndexedView<ArgType, RowIndices, ColIndices>, IndexBased>
const XprType& m_xpr;
};
// Catch assignments to an IndexedView.
template <typename ArgType, typename RowIndices, typename ColIndices>
struct evaluator_assume_aliasing<IndexedView<ArgType, RowIndices, ColIndices>> {
static const bool value = true;
};
} // end namespace internal
} // end namespace Eigen