MF_element MD_element ME_element
MCF_element MCD_element MCE_element
Functionread-only access to a matrix element
Syntax C/C++#include <MFstd.h>
float MF_element( fMatrix MA, ui ht, ui len, unsigned m, unsigned n );
fComplex MCF_element( cfMatrix MA, ui ht, ui len, unsigned m, unsigned n );
C++ MatObj#include <OptiVec.h>
T matrix<T>::element( const unsigned m, const unsigned n );
Pascal/Delphiuses MFstd;
function MF_element( MA:fMatrix; ht, len, m, n:UIntSize ): Single;
function MCF_element( MA:cfMatrix; ht, len, m, n:UIntSize ): fComplex;

Alternative syntax for the complex types (obsolete, but still supported):
procedure MCF_element( var RetVal:fComplex; MA:cfMatrix; ht, len, m, n:UIntSize );
CUDA function C/C++#include <cudaMFstd.h>
float cudaMF_element( fMatrix d_MA, ui ht, ui len, unsigned m, unsigned n );
CUDA function Pascal/Delphiuses MFstd;
function cudaMF_element( d_MA:fMatrix; ht, len, m, n:UIntSize ): Single;
function cudaMCF_element( d_MA:cfMatrix; ht, len, m, n:UIntSize ): fComplex;

Alternative syntax for the complex types:
procedure cudaMCF_element( var RetVal:fComplex; MA:cfMatrix; ht, len, m, n:UIntSize );
DescriptionThe element MAm,n is returned.
MF_element is "read-only". This means, you c a n n o t write something like
MF_element( MX, ht, len, 3, 4 ) := 5;
Write access to individual matrix elements is provided by MF_setElement and MF_Pelement
Return valuethe matrix element m,n (except complex version in Pascal/Delphi)
See alsoMF_setElement,   MF_Pelement,   chapter 2

MatrixLib Table of Contents  OptiVec home