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;
function MCF_Dia_sum( MA:cfMatrix; len:UIntSize ): fComplex;

Alternative syntax for the complex types:
procedure MCF_Dia_sum( var RetVal:fComplex; MA:cfMatrix; len:UIntSize );
CUDA function C/C++#include <cudaMFstd.h>
int cudaMF_Dia_sum( float *h_RetVal, fMatrix d_MA, ui len );
int cusdMF_Dia_sum( float *d_RetVal, fMatrix d_MA, ui len );
float MFcu_Dia_sum( fMatrix h_MA, ui len );
CUDA function Pascal/Delphiuses MFstd, MCFstd;
function cudaMF_Dia_sum( var h_RetVal:Single; d_MA:fMatrix; len:UIntSize ): IntBool;
function cusdMF_Dia_sum( d_RetVal:PSingle; d_MA:fMatrix; len:UIntSize ): IntBool;
procedure MFcu_Dia_sum( h_MA:fMatrix; len:UIntSize ): Single;
function MCFcu_Dia_sum( h_MA:cfMatrix; len:UIntSize ): fComplex;

Alternative syntax for the complex types:
procedure MCFcu_Dia_sum( var h_RetVal:fComplex; h_MA:cfMatrix; len:UIntSize );
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