MF_Dia_sum MD_Dia_sum ME_Dia_sum
MCF_Dia_sum MCD_Dia_sum MCE_Dia_sum
Functionsum over all elements of the diagonal of a square matrix
Syntax C/C++#include <MFstd.h>
float MF_Dia_sum( fMatrix MA, ui len );
C++ MatObj#include <OptiVec.h>
T matrix<T>::Dia_sum();
Pascal/Delphiuses MFstd;
function MF_Dia_sum( MA:fMatrix; len:UIntSize ):Single;
Descriptionthe elements of the diagonal are summed up and returned as a scalar
Return valuesum over the diagonal elements
See alsoMF_Dia_prod,   chapter 7

MatrixLib Table of Contents  OptiVec home