// Copyright Louis Dionne 2013-2016 // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) #ifndef BOOST_HANA_EXAMPLE_CPPCON_2014_MATRIX_GROUP_HPP #define BOOST_HANA_EXAMPLE_CPPCON_2014_MATRIX_GROUP_HPP #include "matrix.hpp" #include #include namespace boost { namespace hana { template struct minus_impl, cppcon::Matrix> { template static constexpr decltype(auto) apply(M1&& m1, M2&& m2) { return element_wise(minus)( std::forward(m1), std::forward(m2) ); } }; }} #endif // !BOOST_HANA_EXAMPLE_CPPCON_2014_MATRIX_GROUP_HPP