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

Parameter Description
Matrix name of source data matrix (see Arrays in functions)
DiagVector destination vector (see Arrays in functions) to receive values in the main diagonal from source matrix

The MatrixGetColumn function will copy the values from the main diagonal of the specified source Matrix (see also Arrays in functions) into the destination vector specified as DiagVector.

Related topics
MatrixGetColumn, MatrixGetRow, MatrixExtract, MatrixSetColumn, MatrixSetDiagonal, MatrixSetRow, MatrixCopy MatrixDuplicate. 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.