The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



FillDiag


Unit:SDL_matrix
Class: TMatrix, TIntMatrix, TMat3D
Declaration: procedure FillDiag (value: double); { class TMatrix, and TMat3D }
procedure FillDiag (value: integer); { class TIntMatrix }

The method FillDiag sets all elements of the diagonal of a matrix to value.

Hint: The class TMatrix has no explicit method to clear the elements of the matrix. In order to reset all elements to zero values, the method Fill should be used.

Example: The statement Mat.FillDiag(2); fills all diagonal elements of the matrix Mat with the value 2.



Last Update: 2023-Feb-10