@@ -336,7 +336,7 @@ cdef class MKLPardisoSolver:
336336 def __call__ (self , b ):
337337 return self .solve(b)
338338
339- def solve (self , b , x = None ):
339+ def solve (self , b , x = None , transpose = False ):
340340 """ solve(self, b, x=None, transpose=False)
341341 Solves the equation AX=B using the factored A matrix
342342
@@ -354,6 +354,8 @@ cdef class MKLPardisoSolver:
354354 x : numpy.ndarray, optional
355355 A pre-allocated output array (of the same data type as A).
356356 If None, a new array is constructed.
357+ transpose : bool, optional
358+ If True, it will solve A^TX=B using the factored A matrix.
357359
358360 Returns
359361 -------
@@ -388,6 +390,10 @@ cdef class MKLPardisoSolver:
388390
389391 cdef int_t nrhs = b.shape[1 ] if b.ndim == 2 else 1
390392
393+ if transpose:
394+ self .set_iparm(11 , 2 )
395+ else :
396+ self .set_iparm(11 , 0 )
391397 self ._solve(bp, xp, nrhs)
392398 return x
393399
@@ -420,7 +426,7 @@ cdef class MKLPardisoSolver:
420426 if self ._is_32:
421427 self ._par.iparm[i] = val
422428 else :
423- self ._par .iparm[i] = val
429+ self ._par64 .iparm[i] = val
424430
425431 @property
426432 def nnz (self ):
0 commit comments