Skip to content

Commit

Permalink
Make the return type explicit. (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhbliao committed Apr 28, 2020
1 parent 0b03491 commit 29b3fb0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions library/include/hipblas.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ struct hip_complex_number
{
}

auto& operator*=(const hip_complex_number& rhs)
hip_complex_number& operator*=(const hip_complex_number& rhs)
{
return *this = {x * rhs.x - y * rhs.y, y * rhs.x + x * rhs.y};
}
Expand All @@ -60,12 +60,12 @@ struct hip_complex_number
return lhs *= rhs;
}

auto& operator+=(const hip_complex_number& rhs)
hip_complex_number& operator+=(const hip_complex_number& rhs)
{
return *this = {x + rhs.x, y + rhs.y};
}

auto& operator/(const hip_complex_number& rhs)
hip_complex_number& operator/(const hip_complex_number& rhs)
{
if(abs(rhs.x) > abs(rhs.y))
{
Expand Down

0 comments on commit 29b3fb0

Please sign in to comment.