MF_Dia_prod MD_Dia_prod ME_Dia_prod
MCF_Dia_prod MCD_Dia_prod MCE_Dia_prod
Functionproduct of all elements of the diagonal of a square matrix
Syntax C/C++#include <MFstd.h>
float MF_Dia_prod( fMatrix MA, ui len );
C++ MatObj#include <OptiVec.h>
T matrix<T>::Dia_prod();
Pascal/Delphiuses MFstd, MCFstd;
function MF_Dia_prod( MA:fMatrix; len:UIntSize ): Single;
function MCF_Dia_prod( MA:cfMatrix; len:UIntSize ): fComplex;

Alternative syntax for the complex types (obsolete, but still supported):
procedure MCF_Dia_prod( var RetVal:fComplex; MA:cfMatrix; len:UIntSize );
CUDA function C/C++#include <cudaMFstd.h>
int cudaMF_Dia_prod( float *h_RetVal, fMatrix d_MA, ui len );
int cusdMF_Dia_prod( float *d_RetVal, fMatrix d_MA, ui len );
float MFcu_Dia_prod( fMatrix h_MA, ui len );
CUDA function Pascal/Delphiuses MFstd, MCFstd;
function cudaMF_Dia_prod( var h_RetVal:Single; d_MA:fMatrix; len:UIntSize ): IntBool;
function cusdMF_Dia_prod( d_RetVal:PSingle; d_MA:fMatrix; len:UIntSize ): IntBool;
procedure MFcu_Dia_prod( h_MA:fMatrix; len:UIntSize ): Single;
function MCFcu_Dia_prod( h_MA:cfMatrix; len:UIntSize ): fComplex;

Alternative syntax for the complex types:
procedure MCFcu_Dia_prod( var h_RetVal:fComplex; h_MA:cfMatrix; len:UIntSize );
Descriptionthe product of the diagonal elements is returned as a scalar
Return valueproduct of the diagonal elements
See alsoMF_Dia_sum,   chapter 7

MatrixLib Table of Contents  OptiVec home