Fix std::fill_n reference.

This commit is contained in:
Antonio Sánchez
2025-01-14 00:43:00 +00:00
committed by Charles Schlosser
parent 9836e8d035
commit ad13df7ea4
2 changed files with 17 additions and 11 deletions

View File

@@ -78,7 +78,7 @@ template <typename Xpr>
struct eigen_fill_impl<Xpr, /*use_fill*/ true> {
using Scalar = typename Xpr::Scalar;
static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void run(Xpr& dst, const Scalar& val) {
EIGEN_USING_STD(fill_n);
using std::fill_n;
fill_n(dst.data(), dst.size(), val);
}
template <typename SrcXpr>