Skip to content

Commit

Permalink
Trying to reproduce
Browse files Browse the repository at this point in the history
  • Loading branch information
tdegeus committed Sep 10, 2020
1 parent ffe96c2 commit f661fc0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/test_xfixed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,9 @@ namespace xt
class FixedMember
{
public:
FixedMember(double foo)
FixedMember(size_t bar, double foo)
{
m_bar = bar;
m_foo = foo;
m_I = xt::xtensor_fixed<double, xt::xshape<2, 2>>({{1.0, 0.0},
{0.0, 1.0}});
Expand All @@ -319,13 +320,14 @@ namespace xt
}

private:
size_t m_bar;
double m_foo;
xt::xtensor_fixed<double, xt::xshape<2, 2>> m_I;
};

TEST(xtensor_fixed, member)
{
FixedMember c(1.2);
FixedMember c(20, 1.2);
auto m = c.get();
auto r = xt::xtensor_fixed<double, xt::xshape<2, 2>>({{2.0, 0.0},
{0.0, 2.0}});
Expand Down

0 comments on commit f661fc0

Please sign in to comment.