Matrix.FillDiagonal 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.

 

Overload List

Signatures

Return Value

Description

Matrix.FillDiagonal(Variable valueToLoad)

None

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.

Matrix.FillDiagonal(Variable valueToLoad, Variable matrixDimension)

None

Resizes the matrix to the specified dimension and loads the specifed value into the diagonal elements of the matrix and zero into all other elements.

 

 

See also

Matrix Object

Matrix, Array, and Variable Math Guide