VirtualArray.ToDiagonalMatrix() Method

Top 

Description

Returns a Matrix where the diagonal elements are the elements of the calling Array.

 

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

VirtualArray.ToDiagonalMatrix(

)

 

 

Return Value

Type:

Matrix of number

 

 

Returns a Matrix object that contains the values of the Array as the diagonal elements.

 

Syntax

myMatrix1 = {1,2,3,4}.ToDiagonalMatrix();

 

 

See also

VirtualArray Object