mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-14 12:46:00 +08:00
Fix ODR violation in trsm.
This commit is contained in:
parent
9a14d91a99
commit
4451823fb4
@ -66,17 +66,17 @@ EIGEN_ALWAYS_INLINE auto remMask(int64_t m) {
|
||||
}
|
||||
|
||||
template<typename T1, typename T2>
|
||||
T2 castPacket(T1 &a) {
|
||||
EIGEN_ALWAYS_INLINE T2 castPacket(T1 &a) {
|
||||
return reinterpret_cast<T2>(a);
|
||||
}
|
||||
|
||||
template<>
|
||||
vecHalfFloat castPacket(vecFullFloat &a) {
|
||||
EIGEN_ALWAYS_INLINE vecHalfFloat castPacket(vecFullFloat &a) {
|
||||
return _mm512_castps512_ps256(a);
|
||||
}
|
||||
|
||||
template<>
|
||||
vecFullDouble castPacket(vecFullDouble &a) {
|
||||
EIGEN_ALWAYS_INLINE vecFullDouble castPacket(vecFullDouble &a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user