Commit 225c2d64 authored by Paul's avatar Paul
Browse files

Formatting

parent 24cc6ea8
......@@ -27,9 +27,7 @@ literal generate_literal(shape s, unsigned long seed)
// TODO: Move to literal.cpp
literal abs(literal l)
{
return transform(l, [](auto x) {
return std::fabs(x);
});
return transform(l, [](auto x) { return std::fabs(x); });
}
} // namespace migraph
......@@ -34,9 +34,9 @@ template <class T>
struct xorshf96_generator
{
unsigned long seed = 0;
unsigned long x = 123456789;
unsigned long y = 362436069;
unsigned long z = 521288629 ^ seed;
unsigned long x = 123456789;
unsigned long y = 362436069;
unsigned long z = 521288629 ^ seed;
constexpr T operator()() noexcept
{
......
......@@ -94,7 +94,7 @@ struct literal : raw_data<literal>
}
};
template<class F>
template <class F>
literal transform(literal l, F f)
{
literal result;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment