Skip to content

Commit

Permalink
Fix int32_t check
Browse files Browse the repository at this point in the history
  • Loading branch information
Aidan committed Jun 20, 2024
1 parent a7b21c0 commit ead997f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/unit_tests/blas/include/test_common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -658,16 +658,16 @@ bool check_equal_trsm_matrix(acc1 &M, acc2 &M_ref, oneapi::mkl::layout layout, i
// Helper for using std::result_of for evalutation operator[] return type
template <typename T>
struct access_index {
auto operator()(int i) {
return M[i];
auto operator()(T M) {
return M[0];
}
T *M[0];
};

// Helper for checking if a matrix/vector/accessor structure returns an integral type
template <typename T>
constexpr bool is_matrix_type_integral() {
return std::is_integral_v<typename std::result_of<access_index<T>(int)>::type>;
return std::is_integral_v<
std::remove_reference_t<typename std::result_of<access_index<T>(T)>::type>>;
}

template <typename fp>
Expand Down

0 comments on commit ead997f

Please sign in to comment.