Matrix.FillDiagonal(Variable) Method

Top 

Description

Loads the specifed value into the diagonal elements of the matrix and zero into all other elements. If the matrix is not square, an error will be 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

Matrix.FillDiagonal(

Variable valueToLoad)

 

 

Arguments

valueToLoad


Description:

The value to load.

 

 

 

Syntax

myMatrix1.FillDiagonal(myVariable1);

 

 

See also

Matrix Object

Matrix.FillDiagonal

Matrix, Array, and Variable Math Guide