src
extern
eigen3
Eigen
src
Core
arch
Default
ConjHelper.h
Go to the documentation of this file.
1
2
// This file is part of Eigen, a lightweight C++ template library
3
// for linear algebra.
4
//
5
// Copyright (C) 2017 Gael Guennebaud <gael.guennebaud@inria.fr>
6
//
7
// This Source Code Form is subject to the terms of the Mozilla
8
// Public License v. 2.0. If a copy of the MPL was not distributed
9
// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
10
11
#ifndef EIGEN_ARCH_CONJ_HELPER_H
12
#define EIGEN_ARCH_CONJ_HELPER_H
13
14
#define EIGEN_MAKE_CONJ_HELPER_CPLX_REAL(PACKET_CPLX, PACKET_REAL) \
15
template<> struct conj_helper<PACKET_REAL, PACKET_CPLX, false,false> { \
16
EIGEN_STRONG_INLINE PACKET_CPLX pmadd(const PACKET_REAL& x, const PACKET_CPLX& y, const PACKET_CPLX& c) const \
17
{ return padd(c, pmul(x,y)); } \
18
EIGEN_STRONG_INLINE PACKET_CPLX pmul(const PACKET_REAL& x, const PACKET_CPLX& y) const \
19
{ return PACKET_CPLX(Eigen::internal::pmul<PACKET_REAL>(x, y.v)); } \
20
}; \
21
\
22
template<> struct conj_helper<PACKET_CPLX, PACKET_REAL, false,false> { \
23
EIGEN_STRONG_INLINE PACKET_CPLX pmadd(const PACKET_CPLX& x, const PACKET_REAL& y, const PACKET_CPLX& c) const \
24
{ return padd(c, pmul(x,y)); } \
25
EIGEN_STRONG_INLINE PACKET_CPLX pmul(const PACKET_CPLX& x, const PACKET_REAL& y) const \
26
{ return PACKET_CPLX(Eigen::internal::pmul<PACKET_REAL>(x.v, y)); } \
27
};
28
29
#endif // EIGEN_ARCH_CONJ_HELPER_H
control_box_rst
Author(s): Christoph Rösmann
autogenerated on Wed Mar 2 2022 00:05:40