Commit cae96da
committed
Fix SIMD assignment to xfunctor_view destinations (#2892)
xt::real(e) = w failed to compile with XTENSOR_USE_XSIMD: the SIMD
gate only probed load_simd, but the linear assigner also needs data()
on the destination, which functor views lack. Gate the SIMD paths on
data_interface_expression<E1> instead; functor views fall back to
scalar assignment while containers keep the SIMD path.
Adds a regression test (test_xcomplex.assign_to_real_part).1 parent 3c61330 commit cae96da
2 files changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
395 | | - | |
| 395 | + | |
| 396 | + | |
396 | 397 | | |
397 | 398 | | |
398 | 399 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
322 | 332 | | |
323 | 333 | | |
324 | 334 | | |
| |||
0 commit comments