diff options
author | Antonio Sanchez <cantonios@google.com> | 2020-12-07 08:27:03 -0800 |
---|---|---|
committer | Antonio Sanchez <cantonios@google.com> | 2020-12-07 08:38:43 -0800 |
commit | 655c3a40428e0e6a5490a3a4d4bddceb45af4a3a (patch) | |
tree | 45f7551c781d7351135e2fdd19d13f998352a711 /Eigen/src/Core/arch/NEON | |
parent | 5ec4907434742d4555df4aa708b665868b88f3b4 (diff) |
Add specialization for compile-time zero-sized dense assignment.
In the current `dense_assignment_loop` implementations, if the
destination's inner or outer size is zero at compile time and if the kernel
involves a product, we currently get a compile error (#2080). This is
triggered by attempting to multiply a non-existent row by a column (or
vice-versa).
To address this, we add a specialization for zero-sized assignments
(`AllAtOnceTraversal`) which evaluates to a no-op. We also add a static
check to ensure the size is in-fact zero. This now seems to be the only
existing use of `AllAtOnceTraversal`.
Fixes #2080.
Diffstat (limited to 'Eigen/src/Core/arch/NEON')
0 files changed, 0 insertions, 0 deletions