Skip to content

Commit cddc321

Browse files
Fix ipiv_contig check in getrs
1 parent 4208454 commit cddc321

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpnp/backend/extensions/lapack/getrs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ std::pair<sycl::event, sycl::event>
234234
throw py::value_error("The right-hand sides array "
235235
"must be F-contiguous");
236236
}
237-
if (!is_ipiv_array_c_contig || !is_ipiv_array_f_contig) {
237+
if (!is_ipiv_array_c_contig && !is_ipiv_array_f_contig) {
238238
throw py::value_error("The array of pivot indices "
239239
"must be contiguous");
240240
}

0 commit comments

Comments
 (0)