Skip to content

Commit eeaf7dd

Browse files
Use mT
1 parent 816937d commit eeaf7dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pytensor/tensor/slinalg.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -467,10 +467,10 @@ def solve_triangular(
467467
b_ndim = _default_b_ndim(b, b_ndim)
468468

469469
if trans in [1, "T", True]:
470-
a = a.T
470+
a = a.mT
471471
lower = not lower
472472
if trans in [2, "C"]:
473-
a = a.conj().T
473+
a = a.conj().mT
474474
lower = not lower
475475

476476
ret = Blockwise(
@@ -586,7 +586,7 @@ def solve(
586586
b_ndim = _default_b_ndim(b, b_ndim)
587587

588588
if transposed:
589-
a = a.T
589+
a = a.mT
590590
lower = not lower
591591

592592
return Blockwise(

0 commit comments

Comments
 (0)