ing
	(
		detail::tmat2x3<float, P> const & x
	)
	{
		return detail::format("mat2x3((%f, %f, %f), (%f, %f, %f))", 
			x[0][0], x[0][1], x[0][2], 
			x[1][0], x[1][1], x[1][2]);
	}

	template <precision P>
	GLM_FUNC_QUALIFIER std::string to_string
	(
		detail::tmat2x4<float, P> const & x
	)
	{
		return detail::format("mat2x4((%f, %f, %f, %f), (%f, %f, %f, %f))", 
			x[0][0], x[0][1], x[0][2], x[0][3], 
			x[1][0], x[1][1], x[1][2], x[1][3]);
	}

	template <precision P>
	GLM_FUNC_QUALIFIER std::string to_string
	(
		detail::tmat3x2<float, P> const & x
	)
	{
		return detail::format("mat3x2((%f, %f), (%f, %f), (%f, %f))", 
			x[0][0], x[0][1], 
			x[1][0], x[1][1], 
			x[2][0], x[2][1]);
	}

	template <precision P>
	GLM_FUNC_QUALIFIER std::string to_string
	(
		detail::tmat3x3<float, P> const & x
	)
	{
		return detail::format("mat3x3((%f, %f, %f), (%f, %f, %f), (%f, %f, %f))", 
			x[0][0], x[0][1], x[0][2], 
			x[1][0], x[1][1], x[1][2],
			x[2][0], x[2][1], x[2][2]);
	}

	template <precision P>
	GLM_FUNC_QUALIFIER std::string to_string
	(
		detail::tmat3x4<float, P> const & x
	)
	{
		return detail::format("mat3x4((%f, %f, %f, %f), (%f, %f, %f, %f), (%f, %f, %f, %f))", 
			x[0][0], x[0][1], x[0][2], x[0][3], 
			x[1][0], x[1][1], x[1][2], x[1][3], 
			x[2][0], x[2][1], x[2][2], x[2][3]);
	}

	template <precision P>
	GLM_FUNC_QUALIFIER std::string to_string
	(
		detail::tmat4x2<float, P> const & x
	)
	{
		return detail::format("mat4x2((%f, %f), (%f, %f), (%f, %f), (%f, %f))", 
			x[0][0], x[0][1], 
			x[1][0], x[1][1], 
			x[2][0], x[2][1], 
			x[3][0], x[3][1]);
	}

	template <precision P>
	GLM_FUNC_QUALIFIER std::string to_string
	(
		detail::tmat4x3<float, P> const & x
	)
	{
		return detail::format("mat4x3((%f, %f, %f), (%f, %f, %f), (%f, %f, %f), (%f, %f, %f))", 
			x[0][0], x[0][1], x[0][2],
			x[1][0], x[1][1], x[1][2], 
			x[2][0], x[2][1], x[2][2],
			x[3][0], x[3][1], x[3][2]);
	}

	template <precision P>
	GLM_FUNC_QUALIFIER std::string to_string
	(
		detail::tmat4x4<float, P> const & x
	)
	{
		return detail::format("mat4x4((%f, %f, %f, %f), (%f, %f, %f, %f), (%f, %f, %f, %f), (%f, %f, %f, %f))", 
			x[0][0], x[0][1], x[0][2], x[0][3],
			x[1][0], x[1][1], x[1][2], x[1][3],
			x[2][0], x[2][1], x[2][2], x[2][3],
			x[3][0], x[3][1], x[3][2], x[3][3]);
	}

	////////////////////////////////
	// Double matrices

	template <precision P>
	GLM_FUNC_QUALIFIER std::string to_string
	(
		detail::tmat2x2<double, P> const & x
	)
	{
		return detail::format("dmat2x2((%f, %f), (%f, %f))",
			x[0][0], x[0][1], 
			x[1][0], x[1][1]);
	}

	template <precision P>
	GLM_FUNC_QUALIFIER std::string to_string
	(
		detail::tmat2x3<double, P> const & x
	)
	{
		return detail::format("dmat2x3((%f, %f, %f), (%f, %f, %f))",
			x[0][0], x[0][1], x[0][2], 
			x[1][0], x[1][1], x[1][2]);
	}

	template <precision P>
	GLM_FUNC_QUALIFIER std::string to_string
	(
		detail::tmat2x4<double, P> const & x
	)
	{
		return detail::format("dmat2x4((%f, %f, %f, %f), (%f, %f, %f, %f))",
			x[0][0], x[0][1], x[0][2], x[0][3], 
			x[1][0], x[1][1], x[1][2], x[1