@@ -76,6 +76,13 @@ void init_dispatch_tables(void)
7676
7777PYBIND11_MODULE (_lapack_impl, m)
7878{
79+ // Expose oneMKL transpose enum to Python
80+ py::enum_<oneapi::mkl::transpose>(m, " Transpose" )
81+ .value (" N" , oneapi::mkl::transpose::N)
82+ .value (" T" , oneapi::mkl::transpose::T)
83+ .value (" C" , oneapi::mkl::transpose::C)
84+ .export_values (); // Optional, allows access like `Transpose.N`
85+
7986 // Register a custom LinAlgError exception in the dpnp.linalg submodule
8087 py::module_ linalg_module = py::module_::import (" dpnp.linalg" );
8188 py::register_exception<lapack_ext::LinAlgError>(
@@ -160,7 +167,8 @@ PYBIND11_MODULE(_lapack_impl, m)
160167 " the solves of linear equations with an LU-factored "
161168 " square coefficient matrix, with multiple right-hand sides" ,
162169 py::arg (" sycl_queue" ), py::arg (" a_array" ), py::arg (" ipiv_array" ),
163- py::arg (" b_array" ), py::arg (" depends" ) = py::list ());
170+ py::arg (" b_array" ), py::arg (" trans" ) = oneapi::mkl::transpose::N,
171+ py::arg (" depends" ) = py::list ());
164172
165173 m.def (" _orgqr_batch" , &lapack_ext::orgqr_batch,
166174 " Call `_orgqr_batch` from OneMKL LAPACK library to return "
0 commit comments