aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/random_without_cast_overflow.h
Commit message (Collapse)AuthorAge
* Fix tensor casts for large packets and casts to/from std::complexGravatar Antonio Sanchez2020-06-30
The original tensor casts were only defined for `SrcCoeffRatio`:`TgtCoeffRatio` 1:1, 1:2, 2:1, 4:1. Here we add the missing 1:N and 8:1. We also add casting `Eigen::half` to/from `std::complex<T>`, which was missing to make it consistent with `Eigen:bfloat16`, and generalize the overload to work for any complex type. Tests were added to `basicstuff`, `packetmath`, and `cxx11_tensor_casts` to test all cast configurations.