Commit 24d9c9d
committed
Fix transform_tensor for non-default allocator float_vec
fplus::transform with rvalue relies on type deduction that fails when
float_vec uses Eigen::aligned_allocator. Replace with an explicit copy
and in-place std::transform, which achieves the same effect: the copy
uses memcpy rather than zero-initialization, and the plain iterator
allows the compiler to vectorize the loop.1 parent a0fdb7d commit 24d9c9d
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
194 | 196 | | |
195 | 197 | | |
196 | 198 | | |
| |||
0 commit comments