mat_traits.hpp 613 B

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