powered by
Takes the traces of a matrix by extracting the diagonal entries and then summing over.
tr(x)
Square matrix (\(Q \times Q\))
Returns a single-value double.
logdet, fillout
logdet
fillout
# NOT RUN { # Identity Matrix of size 4, gives trace of 4. tr(diag(4)) # }
Run the code above in your browser using DataLab