From 23216279dc4bfcddbadafc9619f738eac32bceac Mon Sep 17 00:00:00 2001 From: Orange Date: Thu, 18 Sep 2025 18:42:02 +0300 Subject: [PATCH] fix --- include/omath/linear_algebra/mat.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/omath/linear_algebra/mat.hpp b/include/omath/linear_algebra/mat.hpp index fd234ce..99c6081 100644 --- a/include/omath/linear_algebra/mat.hpp +++ b/include/omath/linear_algebra/mat.hpp @@ -161,15 +161,16 @@ namespace omath #ifdef OMATH_USE_AVX2 if constexpr (StoreType == MatStoreType::ROW_MAJOR) return avx_multiply_row_major(other); - if constexpr (StoreType == MatStoreType::COLUMN_MAJOR) + else if constexpr (StoreType == MatStoreType::COLUMN_MAJOR) return avx_multiply_col_major(other); #else if constexpr (StoreType == MatStoreType::ROW_MAJOR) return cache_friendly_multiply_row_major(other); - if constexpr (StoreType == MatStoreType::COLUMN_MAJOR) + else if constexpr (StoreType == MatStoreType::COLUMN_MAJOR) return cache_friendly_multiply_col_major(other); #endif - std::unreachable(); + else + std::unreachable(); } constexpr Mat& operator*=(const Type& f) noexcept