Statistica Visual Basic Library of Matrix Functions - MatrixSetDiagonal (Matrix, DiagVector)

Parameter

Description

Matrix

name of target data matrix (see Arrays in functions)

DiagVector

source vector (see Arrays in functions) containing the values to be placed into the source matrix

The MatrixSetDiagonal function will place the values from the specified DiagVector into the main diagonal of the target Matrix (see also Arrays in functions).

Related topics. MatrixSetColumn, MatrixSetRow, MatrixFill, MatrixRead, MatrixExtract, MatrixGetColumn, MatrixGetDiagonal, MatrixGetRow. For more information on using arrays, see Arrays in functions. For a complete list of matrix functions, see Statistica Visual Basic library of matrix functions.