Enable fill_n and memset optimizations for construction and assignment

This commit is contained in:
Charles Schlosser
2024-12-14 14:25:04 +00:00
parent af59ada0ac
commit c01ff45312
7 changed files with 105 additions and 22 deletions

View File

@@ -505,6 +505,17 @@ struct stem_function {
template <typename XprType, typename Device>
struct DeviceWrapper;
namespace internal {
template <typename Xpr>
struct eigen_fill_helper;
template <typename Xpr, bool use_fill = eigen_fill_helper<Xpr>::value>
struct eigen_fill_impl;
template <typename Xpr>
struct eigen_memset_helper;
template <typename Xpr, bool use_memset = eigen_memset_helper<Xpr>::value>
struct eigen_zero_impl;
} // namespace internal
} // end namespace Eigen
#endif // EIGEN_FORWARDDECLARATIONS_H