traits.hpp 431 B

12345678910111213141516171819
  1. #pragma once
  2. #include "forward.h"
  3. namespace math { namespace matrix {
  4. template <typename T> struct is_matrix {
  5. static const constexpr bool value = false;
  6. };
  7. template <typename T, size_t R, size_t C> struct is_matrix<matrix<T, R, C>> {
  8. static const constexpr bool value = true;
  9. };
  10. template <typename T, size_t N> struct is_matrix<vector::vector<T, N>> {
  11. static const constexpr bool value = true;
  12. };
  13. }}