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) 2015 Benoit Steiner <benoit.steiner.goog@gmail.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_AVX_H
11#define EIGEN_TYPE_CASTING_AVX_H
12
13namespace Eigen {
14
15namespace internal {
16
17// For now we use SSE to handle integers, so we can't use AVX instructions to cast
18// from int to float
19template <>
20struct type_casting_traits<float, int> {
21 enum {
23 SrcCoeffRatio = 1,
25 };
26};
27
28template <>
29struct type_casting_traits<int, float> {
30 enum {
32 SrcCoeffRatio = 1,
34 };
35};
36
37
38#ifndef EIGEN_VECTORIZE_AVX512
39
40template <>
48
49
50template <>
58
59template <>
67
68template <>
76
77#endif // EIGEN_VECTORIZE_AVX512
78
82
86
90
94
98
102
106
110
111} // end namespace internal
112
113} // end namespace Eigen
114
115#endif // EIGEN_TYPE_CASTING_AVX_H
ArrayXXi a
Definition Array_initializer_list_23_cxx11.cpp:1
#define EIGEN_STRONG_INLINE
Definition Macros.h:917
return int(ret)+1
EIGEN_STRONG_INLINE Packet8f pcast< Packet8i, Packet8f >(const Packet8i &a)
Definition TypeCasting.h:83
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 Packet8bf pcast< Packet8f, Packet8bf >(const Packet8f &a)
Definition TypeCasting.h:107
EIGEN_STRONG_INLINE Packet8f preinterpret< Packet8f, Packet8i >(const Packet8i &a)
Definition TypeCasting.h:91
EIGEN_STRONG_INLINE Packet8f half2float(const Packet8h &a)
Definition PacketMath.h:988
EIGEN_STRONG_INLINE Packet8f pcast< Packet8bf, Packet8f >(const Packet8bf &a)
Definition TypeCasting.h:99
EIGEN_STRONG_INLINE Packet8f pcast< Packet8h, Packet8f >(const Packet8h &a)
Definition TypeCasting.h:95
__m256i Packet8i
Definition PacketMath.h:32
EIGEN_STRONG_INLINE Packet8i preinterpret< Packet8i, Packet8f >(const Packet8f &a)
Definition TypeCasting.h:87
EIGEN_STRONG_INLINE Packet8i pcast< Packet8f, Packet8i >(const Packet8f &a)
Definition TypeCasting.h:79
EIGEN_STRONG_INLINE Packet8h pcast< Packet8f, Packet8h >(const Packet8f &a)
Definition TypeCasting.h:103
__m256 Packet8f
Definition PacketMath.h:31
EIGEN_STRONG_INLINE Packet8bf F32ToBf16(Packet4f p4f)
Definition PacketMath.h:1252
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