mat_traits.hpp 765 B

123456789101112131415161718192021222324252627282930313233
  1. //Copyright (c) 2008-2016 Emil Dotchevski and Reverge Studios, Inc.
  2. //Distributed under the Boost Software License, Version 1.0. (See accompanying
  3. //file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  4. #ifndef UUID_8C06FE26A3E711DEA02C88BA55D89593
  5. #define UUID_8C06FE26A3E711DEA02C88BA55D89593
  6. namespace
  7. boost
  8. {
  9. namespace
  10. qvm
  11. {
  12. template <class M>
  13. struct
  14. mat_traits
  15. {
  16. static int const rows=0;
  17. static int const cols=0;
  18. typedef void scalar_type;
  19. };
  20. template <class T>
  21. struct
  22. is_mat
  23. {
  24. static bool const value=mat_traits<T>::rows>0 && mat_traits<T>::cols>0;
  25. };
  26. }
  27. }
  28. #endif