trace

(method of tensor)

compute the traces of a rank 2 tensor

Synatx

t = trace(T)

Syntax

t = trace(T)

Input

T

tensor

Output

t

double