diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2018-08-02 08:35:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-02 08:35:32 +0200 |
commit | 2bea758165cd8c784d1fafe60a949154c2e10000 (patch) | |
tree | 36a58d77e2900ed71c4f66de1bb32e68cbe7a21a /test/routines/levelx/xomatcopy.hpp | |
parent | bed10d273118e39ef49cf2aea7d69c4194a8384f (diff) | |
parent | 503ab74f020fe764fd2bd69d60ecd72f758b11a2 (diff) |
Merge pull request #309 from CNugteren/CLBlast-306-omatcopy-conjugate
Fixes bug in conjugate transpose not being executed
Diffstat (limited to 'test/routines/levelx/xomatcopy.hpp')
-rw-r--r-- | test/routines/levelx/xomatcopy.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/routines/levelx/xomatcopy.hpp b/test/routines/levelx/xomatcopy.hpp index ea35dbe2..4a93b29d 100644 --- a/test/routines/levelx/xomatcopy.hpp +++ b/test/routines/levelx/xomatcopy.hpp @@ -45,7 +45,9 @@ StatusCode RunReference(const Arguments<T> &args, BuffersHost<T> &buffers_host) const auto b_two = (b_rotated) ? id1 : id2; const auto a_index = a_two * args.a_ld + a_one + args.a_offset; const auto b_index = b_two * args.b_ld + b_one + args.b_offset; - buffers_host.b_mat[b_index] = args.alpha * buffers_host.a_mat[a_index]; + auto a_value = buffers_host.a_mat[a_index]; + if (args.a_transpose == Transpose::kConjugate) { a_value = ComplexConjugate(a_value); } + buffers_host.b_mat[b_index] = args.alpha * a_value; } } return StatusCode::kSuccess; |