TR-mbed 1.0
Loading...
Searching...
No Matches
TypeCasting.h
Go to the documentation of this file.
1// This file is part of Eigen, a lightweight C++ template library
2// for linear algebra.
3//
4// Copyright (C) 2019 Rasmus Munk Larsen <rmlarsen@google.com>
5//
6// This Source Code Form is subject to the terms of the Mozilla
7// Public License v. 2.0. If a copy of the MPL was not distributed
8// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
9
10#ifndef EIGEN_TYPE_CASTING_AVX512_H
11#define EIGEN_TYPE_CASTING_AVX512_H
12
13namespace Eigen {
14
15namespace internal {
16
20
24
28
32
33template <>
41
45
46template <>
54
58
59template <>
60struct type_casting_traits<bfloat16, float> {
61 enum {
63 SrcCoeffRatio = 1,
65 };
66};
67
71
72template <>
73struct type_casting_traits<float, bfloat16> {
74 enum {
76 SrcCoeffRatio = 1,
78 };
79};
80
84
85} // end namespace internal
86
87} // end namespace Eigen
88
89#endif // EIGEN_TYPE_CASTING_AVX512_H
ArrayXXi a
Definition Array_initializer_list_23_cxx11.cpp:1
#define EIGEN_STRONG_INLINE
Definition Macros.h:917
EIGEN_STRONG_INLINE Packet8h float2half(const Packet8f &a)
Definition PacketMath.h:1007
EIGEN_STRONG_INLINE Packet8f Bf16ToF32(const Packet8bf &a)
Definition PacketMath.h:1260
EIGEN_STRONG_INLINE Packet16i pcast< Packet16f, Packet16i >(const Packet16f &a)
Definition TypeCasting.h:17
EIGEN_STRONG_INLINE Packet16f preinterpret< Packet16f, Packet16i >(const Packet16i &a)
Definition TypeCasting.h:29
EIGEN_STRONG_INLINE Packet16i preinterpret< Packet16i, Packet16f >(const Packet16f &a)
Definition TypeCasting.h:25
EIGEN_STRONG_INLINE Packet16f pcast< Packet16bf, Packet16f >(const Packet16bf &a)
Definition TypeCasting.h:68
EIGEN_STRONG_INLINE Packet16f pcast< Packet16h, Packet16f >(const Packet16h &a)
Definition TypeCasting.h:42
EIGEN_STRONG_INLINE Packet8f half2float(const Packet8h &a)
Definition PacketMath.h:988
EIGEN_STRONG_INLINE Packet16bf pcast< Packet16f, Packet16bf >(const Packet16f &a)
Definition TypeCasting.h:81
__m512i Packet16i
Definition PacketMath.h:32
EIGEN_STRONG_INLINE Packet16h pcast< Packet16f, Packet16h >(const Packet16f &a)
Definition TypeCasting.h:55
EIGEN_STRONG_INLINE Packet8bf F32ToBf16(Packet4f p4f)
Definition PacketMath.h:1252
__m512 Packet16f
Definition PacketMath.h:31
EIGEN_STRONG_INLINE Packet16f pcast< Packet16i, Packet16f >(const Packet16i &a)
Definition TypeCasting.h:21
Namespace containing all symbols from the Eigen library.
Definition bench_norm.cpp:85
Definition BandTriangularSolver.h:13
Definition BFloat16.h:58
Definition Half.h:142
Definition GenericPacketMath.h:160
Definition ForwardDeclarations.h:17
Definition GenericPacketMath.h:148
@ TgtCoeffRatio
Definition GenericPacketMath.h:152
@ VectorizedCast
Definition GenericPacketMath.h:150
@ SrcCoeffRatio
Definition GenericPacketMath.h:151