Next: 39.6 Setting variables (SET) Up: 39 MATRIX OPERATIONS Previous: 39.4 Adding matrices (ADD)

39.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
Feb 26, 2003