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 nanosecond timing precision mode.

Click here to see the documentation for this object in millisecond 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