diff --git a/tests/unit_tests/lapack/source/hetrd.cpp b/tests/unit_tests/lapack/source/hetrd.cpp index c352efdd3..13172d64f 100644 --- a/tests/unit_tests/lapack/source/hetrd.cpp +++ b/tests/unit_tests/lapack/source/hetrd.cpp @@ -36,7 +36,7 @@ namespace { const char* accuracy_input = R"( -0 33 35 27182 +1 33 35 27182 )"; template @@ -132,7 +132,7 @@ bool accuracy(const sycl::device& dev, oneapi::mkl::uplo uplo, int64_t n, int64_ e[diag] -= A[diag + (diag + 1) * lda].real(); else for (int64_t diag = 0; diag < n - 1; diag++) - e[diag] -= A[diag + 1 + (diag)*ldt].real(); + e[diag] -= A[diag + 1 + (diag)*lda].real(); auto ulp = reference::lamch('P'); if (reference::lange('I', n, 1, d.data(), n) > 10.0 * ulp) { diff --git a/tests/unit_tests/lapack/source/sytrd.cpp b/tests/unit_tests/lapack/source/sytrd.cpp index 3c39da1d6..01ffe0dff 100644 --- a/tests/unit_tests/lapack/source/sytrd.cpp +++ b/tests/unit_tests/lapack/source/sytrd.cpp @@ -36,7 +36,7 @@ namespace { const char* accuracy_input = R"( -0 33 35 27182 +1 33 35 27182 )"; template @@ -132,7 +132,7 @@ bool accuracy(const sycl::device& dev, oneapi::mkl::uplo uplo, int64_t n, int64_ e[diag] -= A[diag + (diag + 1) * lda]; else for (int64_t diag = 0; diag < n - 1; diag++) - e[diag] -= A[diag + 1 + (diag)*ldt]; + e[diag] -= A[diag + 1 + (diag)*lda]; auto ulp = reference::lamch('P'); if (reference::lange('I', n, 1, d.data(), n) > 10.0 * ulp) {