Skip to content

Commit

Permalink
Include cstdint in MorePacketMath.h to avoid build issue with old Eig…
Browse files Browse the repository at this point in the history
…en3 release
  • Loading branch information
jorisv committed Dec 1, 2023
1 parent 23d287e commit 62d1e1c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions EigenRand/MorePacketMath.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#define EIGENRAND_MORE_PACKET_MATH_H

#include <Eigen/Dense>
#include <cstdint>

#define EIGENRAND_PRINT_PACKET(p) do { using _MTy = typename std::remove_const<typename std::remove_reference<decltype(p)>::type>::type; typename std::conditional<Eigen::internal::IsFloatPacket<_MTy>::value, float, typename std::conditional<Eigen::internal::IsDoublePacket<_MTy>::value, double, int>::type>::type f[4]; Eigen::internal::pstore(f, p); std::cout << #p " " << f[0] << " " << f[1] << " " << f[2] << " " << f[3] << std::endl; } while(0)

Expand Down

0 comments on commit 62d1e1c

Please sign in to comment.