@@ -100,7 +100,7 @@ def matmul(x1: blosc2.Array, x2: blosc2.NDArray, **kwargs: Any) -> blosc2.NDArra
100100 n , k = x1 .shape [- 2 :]
101101 m = x2 .shape [- 1 ]
102102 result_shape = np .broadcast_shapes (x1 .shape [:- 2 ], x2 .shape [:- 2 ]) + (n , m )
103- result = blosc2 .zeros (result_shape , dtype = np .result_type (x1 , x2 ), ** kwargs )
103+ result = blosc2 .zeros (result_shape , dtype = blosc2 .result_type (x1 , x2 ), ** kwargs )
104104
105105 if 0 not in result .shape + x1 .shape + x2 .shape : # if any array is empty, return array of 0s
106106 p , q = result .chunks [- 2 :]
@@ -227,7 +227,7 @@ def tensordot(
227227 raise ValueError ("x1 and x2 must have same shapes along reduction dimensions" )
228228
229229 result_shape = tuple (x1shape [a_keep ]) + tuple (x2shape [b_keep ])
230- result = blosc2 .zeros (result_shape , dtype = np .result_type (x1 , x2 ), ** kwargs )
230+ result = blosc2 .zeros (result_shape , dtype = blosc2 .result_type (x1 , x2 ), ** kwargs )
231231
232232 op_chunks = [
233233 slice_to_chunktuple (slice (0 , s , 1 ), c ) for s , c in zip (x1shape [a_axes ], a_chunks_red , strict = True )
@@ -363,7 +363,7 @@ def vecdot(x1: blosc2.NDArray, x2: blosc2.NDArray, axis: int = -1, **kwargs) ->
363363 raise ValueError ("x1 and x2 must have same shapes along reduction dimensions" )
364364
365365 result_shape = np .broadcast_shapes (x1shape [a_keep ], x2shape [b_keep ])
366- result = blosc2 .zeros (result_shape , dtype = np .result_type (x1 , x2 ), ** kwargs )
366+ result = blosc2 .zeros (result_shape , dtype = blosc2 .result_type (x1 , x2 ), ** kwargs )
367367
368368 res_chunks = [
369369 slice_to_chunktuple (s , c )
0 commit comments