You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The numpy.trace docstring is invalid, trace actually sums over the diagonal in the first two axes by default:
import numpy as N
print N.__version__
N.info(N.trace)
x = N.zeros((4,4,5,6))
print N.trace(x).shape
x = N.zeros((5,6,4,4))
print N.trace(x).shape
outputs
1.0.3
trace(a, offset=0, axis1=0, axis2=1, dtype=None, out=None)
trace(a,offset=0, axis1=0, axis2=1) returns the sum along diagonals
(defined by the last two dimenions) of the array.
(5, 6)
(4, 4)
The text was updated successfully, but these errors were encountered:
Original ticket http://projects.scipy.org/numpy/ticket/532 on 2007-06-01 by @pv, assigned to unknown.
The numpy.trace docstring is invalid, trace actually sums over the diagonal in the first two axes by default:
outputs
The text was updated successfully, but these errors were encountered: