summaryrefslogtreecommitdiff
path: root/test/routines/level2/xtrsv.hpp
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2017-02-25 12:23:04 +0100
committerCedric Nugteren <web@cedricnugteren.nl>2017-02-25 12:23:04 +0100
commite47d95887c6671d6cee248ab4aa7b4a6bda715cd (patch)
tree831c4576314cbd62404749505f87e45c23078f98 /test/routines/level2/xtrsv.hpp
parent2f2a510c38c811b53474dd8cc1a3dfff88053cf0 (diff)
Added PrepareData function for TRSM to create proper test input
Diffstat (limited to 'test/routines/level2/xtrsv.hpp')
-rw-r--r--test/routines/level2/xtrsv.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/routines/level2/xtrsv.hpp b/test/routines/level2/xtrsv.hpp
index 811feac5..72ebdf9e 100644
--- a/test/routines/level2/xtrsv.hpp
+++ b/test/routines/level2/xtrsv.hpp
@@ -46,10 +46,10 @@ void PrepareData(const Arguments<T> &args, Buffers<T> &buffers, Queue &queue) {
auto diagonal = a_mat_cpu[i*args.a_ld + i + args.a_offset];
diagonal = AbsoluteValue(diagonal) + static_cast<T>(args.n / size_t{4});
for (auto j = size_t{0}; j < args.n; ++j) {
- a_mat_cpu[j*args.a_ld + i + args.a_offset] /= T{2.0};
+ a_mat_cpu[j*args.a_ld + i + args.a_offset] /= ConstantTwo<T>();
}
a_mat_cpu[i*args.a_ld + i + args.a_offset] = diagonal;
- x_vec_cpu[i * args.x_inc + args.x_offset] /= T{2.0};
+ x_vec_cpu[i * args.x_inc + args.x_offset] /= ConstantTwo<T>();
}
// Copies input buffers back to the OpenCL device