Skip to content

Commit 318aa21

Browse files
committed
Added a missing file for Eigen 3.3.7
1 parent 3e4b37b commit 318aa21

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Third Party dependencies and foundation libraries for Karl's graphics projects
88
Nuparu currently consists of:
99

1010
* [GLM](http://glm.g-truc.net) 0.9.9.3 (Src)
11-
* [Eigen](http://eigen.tuxfamily.org/) 3.3.4 (Src)
11+
* [Eigen](http://eigen.tuxfamily.org/) 3.3.7 (Src)
1212
* [FreeGLUT](http://freeglut.sourceforge.net) 3.0.0 (Win)
1313
* [GLFW](http://www.glfw.org) 3.2.1 (Mac/Win/Linux)
1414
* [GLEW](https://github.com/nigels-com/glew) 2.1.0 (Mac/Win/Linux)
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
2+
// This file is part of Eigen, a lightweight C++ template library
3+
// for linear algebra.
4+
//
5+
// Copyright (C) 2017 Gael Guennebaud <[email protected]>
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

0 commit comments

Comments
 (0)