From 391e5757bdfbd37b7d15b6834a90749813a93369 Mon Sep 17 00:00:00 2001 From: Cedric Nugteren Date: Tue, 31 Jul 2018 21:44:28 +0200 Subject: Fixed the tests of OMATCOPY to include proper complex conjugation --- test/routines/levelx/xomatcopy.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/routines') 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 &args, BuffersHost &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; -- cgit v1.2.3