summaryrefslogtreecommitdiff
path: root/src/routines/level2/xtbmv.cpp
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2017-02-27 21:00:04 +0100
committerCedric Nugteren <web@cedricnugteren.nl>2017-02-27 21:00:04 +0100
commit00281dad26c6e83ef39629cc26b24154f3219e06 (patch)
tree6d129cf706476120ab88046bd72b10d58796e7c6 /src/routines/level2/xtbmv.cpp
parent4284fcd94043f1d29a6073c6820cd36cc9248441 (diff)
Fixed half-precision bugs in HTBMV/HTPMV/HTRMV/HSYR2K/HTRMM related to incorrect constants
Diffstat (limited to 'src/routines/level2/xtbmv.cpp')
-rw-r--r--src/routines/level2/xtbmv.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/routines/level2/xtbmv.cpp b/src/routines/level2/xtbmv.cpp
index f4a58ed2..117d26e0 100644
--- a/src/routines/level2/xtbmv.cpp
+++ b/src/routines/level2/xtbmv.cpp
@@ -52,9 +52,9 @@ void Xtbmv<T>::DoTbmv(const Layout layout, const Triangle triangle,
auto fast_kernels = false;
try {
MatVec(layout, a_transpose,
- n, n, static_cast<T>(1),
+ n, n, ConstantOne<T>(),
a_buffer, a_offset, a_ld,
- scratch_buffer, x_offset, x_inc, static_cast<T>(0),
+ scratch_buffer, x_offset, x_inc, ConstantZero<T>(),
x_buffer, x_offset, x_inc,
fast_kernels, fast_kernels,
parameter, false, k, 0);