1111else :
1212 from  numpy .core .numeric  import  normalize_axis_tuple 
1313
14- from  ._aliases  import  matmul ,  matrix_transpose ,  tensordot ,  vecdot , isdtype 
14+ from  ._aliases  import  matrix_transpose , isdtype 
1515from  .._internal  import  get_xp 
1616
1717# These are in the main NumPy namespace but not in numpy.linalg 
@@ -149,10 +149,4 @@ def trace(x: ndarray, /, xp, *, offset: int = 0, dtype=None, **kwargs) -> ndarra
149149 dtype  =  xp .float64 
150150 elif  x .dtype  ==  xp .complex64 :
151151 dtype  =  xp .complex128 
152-  return  xp .asarray (xp .trace (x , offset = offset , dtype = dtype , axis1 = - 2 , axis2 = - 1 , ** kwargs ))
153- 
154- __all__  =  ['cross' , 'matmul' , 'outer' , 'tensordot' , 'EighResult' ,
155-  'QRResult' , 'SlogdetResult' , 'SVDResult' , 'eigh' , 'qr' , 'slogdet' ,
156-  'svd' , 'cholesky' , 'matrix_rank' , 'pinv' , 'matrix_norm' ,
157-  'matrix_transpose' , 'svdvals' , 'vecdot' , 'vector_norm' , 'diagonal' ,
158-  'trace' ]
152+  return  xp .asarray (xp .trace (x , offset = offset , dtype = dtype , axis1 = - 2 , axis2 = - 1 , ** kwargs ))
0 commit comments