Skip to content

Commit

Permalink
solved warnings (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
bab2min committed Sep 28, 2021
1 parent 8c4812d commit 30d54ee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion EigenRand/Dists/GammaPoisson.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ namespace Eigen
EIGEN_STRONG_INLINE const Packet packetOp(Rng&& rng)
{
using namespace Eigen::internal;
using ur_base = UniformRealGen<float>;
using PacketType = decltype(reinterpret_to_float(std::declval<Packet>()));

auto mean = gamma.template packetOp<PacketType>(rng);
Expand Down
2 changes: 1 addition & 1 deletion EigenRand/Dists/NormalExp.h
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ namespace Eigen
GammaGen(_Scalar _alpha = 1, _Scalar _beta = 1)
: alpha{ _alpha }, beta{ _beta }
{
px = constant::e / (alpha + constant::e);
px = (_Scalar)(constant::e / (alpha + constant::e));
sqrt = std::sqrt(2 * alpha - 1);
}

Expand Down
3 changes: 3 additions & 0 deletions EigenRand/EigenRand
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@
#ifndef EIGENRAND_EIGENRAND_H
#define EIGENRAND_EIGENRAND_H

#include <Eigen/src/Core/util/DisableStupidWarnings.h>
#include <Eigen/Dense>
#include "Macro.h"
#include "Core.h"

#include <Eigen/src/Core/util/ReenableStupidWarnings.h>

#endif

0 comments on commit 30d54ee

Please sign in to comment.