#include "../matrix.hpp" #include "_matrix_vectorize.hpp" namespace glm { template GLM_FUNC_QUALIFIER mat mix(mat const& x, mat const& y, U a) { return mat(x) * (static_cast(1) - a) + mat(y) * a; } template GLM_FUNC_QUALIFIER mat mix(mat const& x, mat const& y, mat const& a) { return matrixCompMult(mat(x), static_cast(1) - a) + matrixCompMult(mat(y), a); } template struct compute_abs_matrix { GLM_FUNC_QUALIFIER GLM_CONSTEXPR static mat call(mat const& x) { return detail::matrix_functor_1::call(abs, x); } }; template GLM_FUNC_DECL GLM_CONSTEXPR mat abs(mat const& x) { return compute_abs_matrix::value>::call(x); } }//namespace glm