| MF_element
| MD_element |
ME_element |
| MCF_element |
MCD_element |
MCE_element |
|
| Function | read-only access to a matrix element |
|
| Syntax C/C++ | #include <MFstd.h>
float MF_element( fMatrix X, unsigned ht, unsigned len, unsigned m, unsigned n );
fComplex MCF_element( cfMatrix X, unsigned ht, unsigned len, unsigned m, unsigned n ); |
| C++ MatObj | #include <OptiVec.h>
T matrix<T>::element( const unsigned m, const unsigned n ); |
| Pascal/Delphi | uses MFstd;
function MF_element( MA:fMatrix; ht, len, m, n:UInt );
procedure MCF_element( var RetVal:fComplex; MA:cfMatrix; ht, len, m, n:UInt ); |
|
| Description | The 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 value | the matrix element m,n (except complex version in Pascal/Delphi) |
|
|