Next: 36.6 Setting variables (SET) Up: 36 MATRIX OPERATIONS Previous: 36.4 Adding matrices (ADD)

36.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.


P.J. Knowles and H.-J. Werner
molpro@tc.bham.ac.uk
Jan 15, 2002