Skip to content

Commit

Permalink
remove unnecessary template arguments which are given by injected cla…
Browse files Browse the repository at this point in the history
…ss name
  • Loading branch information
bernhardmgruber committed Nov 9, 2020
1 parent 278f0c0 commit 2e01ad3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/llama/Array.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,20 @@ namespace llama
return element[idx];
}

LLAMA_FN_HOST_ACC_INLINE constexpr friend auto operator==(const Array<T, N>& a, const Array<T, N>& b) -> bool
LLAMA_FN_HOST_ACC_INLINE constexpr friend auto operator==(const Array& a, const Array& b) -> bool
{
for (std::size_t i = 0; i < N; ++i)
if (a.element[i] != b.element[i])
return false;
return true;
}

LLAMA_FN_HOST_ACC_INLINE constexpr friend auto operator!=(const Array<T, N>& a, const Array<T, N>& b) -> bool
LLAMA_FN_HOST_ACC_INLINE constexpr friend auto operator!=(const Array& a, const Array& b) -> bool
{
return !(a == b);
}

LLAMA_FN_HOST_ACC_INLINE constexpr friend auto operator+(const Array<T, N>& a, const Array<T, N>& b) -> Array
LLAMA_FN_HOST_ACC_INLINE constexpr friend auto operator+(const Array& a, const Array& b) -> Array
{
Array temp;
for (std::size_t i = 0; i < N; ++i)
Expand Down

0 comments on commit 2e01ad3

Please sign in to comment.