manual   quickstart   instguide   update   basis

Next: 51.6 Setting variables (SET) Up: 51 MATRIX OPERATIONS Previous: 51.4 Adding matrices (ADD)   Contents   Index   PDF

51.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 2010-07-28