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

Array.ToDiagonalMatrix(

)

 

 

Return Value

Type:

Matrix of number

 

 

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

 

Syntax

myMatrix1 = myArray1.ToDiagonalMatrix();

 

 

See also

Array Object

Matrix, Array, and Variable Math Guide