Skip to content

Commit ec87a55

Browse files
committed
update transpose.py
1 parent d886e84 commit ec87a55

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: examples/transpose.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ def sp_transpose(arr):
4545

4646

4747
def np_transpose(arr):
48-
return numpy.ravel(arr.transpose()).reshape(arr.shape)
48+
brr = arr.transpose()
49+
return numpy.ravel(brr).reshape(brr.shape)
4950

5051

5152
def initialize(np, row, col, dtype):

0 commit comments

Comments
 (0)