| 123456789101112131415161718192021 |
- #pragma once
- #include "math/matrix/forward.h"
- namespace math::matrix {
- template <typename T> struct is_matrix {
- static const constexpr bool value = false;
- };
- template <typename T, size_t R, size_t C> struct is_matrix<matrix<T, R, C>> {
- static const constexpr bool value = true;
- };
- template <typename T, size_t N> struct is_matrix<vector::vector<T, N>> {
- static const constexpr bool value = true;
- };
- template <typename T> constexpr bool is_matrix_v = is_matrix<T>::value;
- }
|