Next: 47.6 Setting variables (SET) Up: 47 MATRIX OPERATIONS Previous: 47.4 Adding matrices (ADD)

47.5 Trace of a matrix or the product of two matrices (TRACE)

TRACE,variable, mat1,,[factor]

Computes variable = factor*tr(mat1).

TRACE,variable, mat1, mat2,[factor]

Computes variable = factor*trace(mat1 $\cdot$ mat2).

The result of the trace operation is stored in the MOLPRO variable variable, which can be used in subsequent operations.

If factor is not given, one is assumed.


molpro@molpro.net
Oct 10, 2007