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 X, ui ht, ui len, unsigned m, unsigned n );
fComplex MCF_element( cfMatrix X, 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 );
procedure MCF_element( var RetVal:fComplex; MA:cfMatrix; ht, len, m, n:UIntSize );
DescriptionThe element MAm,n is returned.
Pascal/Delphi only: As fComplex return values are not possible, the MCF_ version stores MAm,n into the variable RetVal.
This function is needed to read elements of dynamically allocated matrices, for which older versions of Borland C++ had a pointer arithmetics bug, and Pascal/Delphi - unlike C - does not provide an own mechanism at all.
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_Pelement
Return valuethe matrix element m,n (except complex version in Pascal/Delphi)
See alsoMF_Pelement,   chapter 2

MatrixLib Table of Contents  OptiVec home