VirtualMatrix.Trace() Method

Top 

Description

Calculates the trace of the matrix. If the matrix isn't square an error is thrown.

 

Timing Precision Mode

This page describes functionality in millisecond timing precision mode. Millisecond timing precision mode is deprecated and will be removed in a future release. We recommend that you migrate your Mission Plans to nanosecond timing precision mode.

Click here to see the documentation for this object in nanosecond timing precision mode.

 

Method Signature

VirtualMatrix.Trace(

)

 

 

Return Value

Type:

number

 

 

Returns the trace of the matrix.

 

Syntax

myVariable1 = [1,2; 3,4].Trace();

 

 

See also

VirtualMatrix Object