File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ def cholesky(a):
8383@numba_funcify .register (PivotToPermutations )
8484def pivot_to_permutation (op , node , ** kwargs ):
8585 inverse = op .inverse
86- dtype = node .inputs [0 ].dtype
86+ dtype = node .outputs [0 ].dtype
8787
8888 @numba_njit
8989 def numba_pivot_to_permutation (piv ):
Original file line number Diff line number Diff line change @@ -604,7 +604,7 @@ def make_node(self, pivots):
604604
605605 def perform (self , node , inputs , outputs ):
606606 [pivots ] = inputs
607- p_inv = np .arange (len (pivots ), dtype = pivots . dtype )
607+ p_inv = np .arange (len (pivots ), dtype = "int64" )
608608
609609 for i in range (len (pivots )):
610610 p_inv [i ], p_inv [pivots [i ]] = p_inv [pivots [i ]], p_inv [i ]
@@ -639,7 +639,7 @@ def make_node(self, A):
639639 )
640640
641641 LU = matrix (shape = A .type .shape , dtype = A .type .dtype )
642- pivots = vector (shape = (A .type .shape [0 ],), dtype = "int64 " )
642+ pivots = vector (shape = (A .type .shape [0 ],), dtype = "int32 " )
643643
644644 return Apply (self , [A ], [LU , pivots ])
645645
You can’t perform that action at this time.
0 commit comments