10 #ifndef EIGEN_ASSIGNMENT_FUNCTORS_H
11 #define EIGEN_ASSIGNMENT_FUNCTORS_H
21 template<
typename DstScalar,
typename SrcScalar>
struct assign_op {
26 template<
int Alignment,
typename Packet>
28 { internal::pstoret<DstScalar,Packet,Alignment>(
a,b); }
32 template<
typename DstScalar>
struct assign_op<DstScalar,void> {};
34 template<
typename DstScalar,
typename SrcScalar>
51 template<
int Alignment,
typename Packet>
53 { internal::pstoret<DstScalar,Packet,Alignment>(
a,
internal::padd(internal::ploadt<Packet,Alignment>(
a),b)); }
55 template<
typename DstScalar,
typename SrcScalar>
72 template<
int Alignment,
typename Packet>
74 { internal::pstoret<DstScalar,Packet,Alignment>(
a,
internal::psub(internal::ploadt<Packet,Alignment>(
a),b)); }
76 template<
typename DstScalar,
typename SrcScalar>
88 template<
typename DstScalar,
typename SrcScalar=DstScalar>
94 template<
int Alignment,
typename Packet>
96 { internal::pstoret<DstScalar,Packet,Alignment>(
a,
internal::pmul(internal::ploadt<Packet,Alignment>(
a),b)); }
98 template<
typename DstScalar,
typename SrcScalar>
110 template<
typename DstScalar,
typename SrcScalar=DstScalar>
struct div_assign_op {
115 template<
int Alignment,
typename Packet>
117 { internal::pstoret<DstScalar,Packet,Alignment>(
a,
internal::pdiv(internal::ploadt<Packet,Alignment>(
a),b)); }
119 template<
typename DstScalar,
typename SrcScalar>
149 Scalar t=b;
const_cast<Scalar&
>(b)=
a;
a=t;
152 swap(
a,
const_cast<Scalar&
>(b));
156 template<
typename Scalar>
161 #if defined(EIGEN_VECTORIZE_AVX) && EIGEN_COMP_CLANG && (EIGEN_COMP_CLANG<800 || defined(__apple_build_version__))
#define EIGEN_DEVICE_FUNC
Definition: Macros.h:976
#define EIGEN_STRONG_INLINE
Definition: Macros.h:917
#define EIGEN_EMPTY_STRUCT_CTOR(X)
Definition: XprHelper.h:22
EIGEN_DEVICE_FUNC Packet padd(const Packet &a, const Packet &b)
Definition: GenericPacketMath.h:215
EIGEN_DEVICE_FUNC Packet pdiv(const Packet &a, const Packet &b)
Definition: GenericPacketMath.h:244
EIGEN_DEVICE_FUNC Packet pmul(const Packet &a, const Packet &b)
Definition: GenericPacketMath.h:237
EIGEN_DEVICE_FUNC Packet psub(const Packet &a, const Packet &b)
Definition: GenericPacketMath.h:222
void swap(scoped_array< T > &a, scoped_array< T > &b)
Definition: Memory.h:709
Namespace containing all symbols from the Eigen library.
Definition: LDLT.h:16
Definition: document.h:416
NLOHMANN_BASIC_JSON_TPL_DECLARATION void swap(nlohmann::NLOHMANN_BASIC_JSON_TPL &j1, nlohmann::NLOHMANN_BASIC_JSON_TPL &j2) noexcept(//NOLINT(readability-inconsistent-declaration-parameter-name, cert-dcl58-cpp) is_nothrow_move_constructible< nlohmann::NLOHMANN_BASIC_JSON_TPL >::value &&//NOLINT(misc-redundant-expression, cppcoreguidelines-noexcept-swap, performance-noexcept-swap) is_nothrow_move_assignable< nlohmann::NLOHMANN_BASIC_JSON_TPL >::value)
exchanges the values of two JSON objects
Definition: json.hpp:25399
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition: pointer.h:1181
Holds information about the various numeric (i.e. scalar) types allowed by Eigen.
Definition: NumTraits.h:233
Definition: AssignmentFunctors.h:46
EIGEN_STRONG_INLINE void assignPacket(DstScalar *a, const Packet &b) const
Definition: AssignmentFunctors.h:52
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void assignCoeff(DstScalar &a, const SrcScalar &b) const
Definition: AssignmentFunctors.h:49
Definition: AssignmentFunctors.h:21
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void assignCoeff(DstScalar &a, const SrcScalar &b) const
Definition: AssignmentFunctors.h:24
EIGEN_STRONG_INLINE void assignPacket(DstScalar *a, const Packet &b) const
Definition: AssignmentFunctors.h:27
Definition: AssignmentFunctors.h:110
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void assignCoeff(DstScalar &a, const SrcScalar &b) const
Definition: AssignmentFunctors.h:113
EIGEN_STRONG_INLINE void assignPacket(DstScalar *a, const Packet &b) const
Definition: AssignmentFunctors.h:116
Definition: XprHelper.h:176
@ PacketAccess
Definition: XprHelper.h:180
@ Cost
Definition: XprHelper.h:179
Definition: AssignmentFunctors.h:89
EIGEN_STRONG_INLINE void assignPacket(DstScalar *a, const Packet &b) const
Definition: AssignmentFunctors.h:95
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void assignCoeff(DstScalar &a, const SrcScalar &b) const
Definition: AssignmentFunctors.h:92
Definition: GenericPacketMath.h:107
Definition: AssignmentFunctors.h:67
EIGEN_STRONG_INLINE void assignPacket(DstScalar *a, const Packet &b) const
Definition: AssignmentFunctors.h:73
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void assignCoeff(DstScalar &a, const SrcScalar &b) const
Definition: AssignmentFunctors.h:70
Definition: AssignmentFunctors.h:142
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void assignCoeff(Scalar &a, const Scalar &b) const
Definition: AssignmentFunctors.h:145
Definition: PacketMath.h:47
#define const
Definition: zconf.h:233