MF_Pelement
| MD_Pelement |
ME_Pelement |
MCF_Pelement |
MCD_Pelement |
MCE_Pelement |
MI_Pelement | MBI_Pelement | MSI_Pelement | MLI_Pelement | MQI_Pelement |
MU_Pelement | MUB_Pelement | MUS_Pelement | MUL_Pelement | MUQ_Pelement |
|
Function | get pointer to a matrix element |
|
Syntax C/C++ | #include <MFstd.h>
float * MF_Pelement( fMatrix MA, ui ht, ui len, unsigned m, unsigned n ); |
C++ MatObj | #include <OptiVec.h>
T * matrix<T>::Pelement( const unsigned m, const unsigned n ); |
Pascal/Delphi | uses MFstd;
function MF_Pelement( MA:fMatrix; ht, len, m, n:UIntSize ): PSingle; |
|
CUDA function C/C++ | #include <cudaMFstd.h>
float * cudaMF_Pelement( fMatrix MA, ui ht, ui len, unsigned m, unsigned n );
|
CUDA function Pascal/Delphi | uses MFstd;
function cudaMF_Pelement( d_MA:fMatrix; ht, len, m, n:UIntSize ): PSingle;
|
|
Description | A pointer to the element MAm,n is returned.
It is possible to use this function for write access to a matrix element through the dereferenced-pointer syntax: |
C/C++ | *MF_Pelement( MA, ht, len, m, n ) = 3.5; |
Pascal/Delphi | MF_Pelement( MA, ht, len, m, n )^ := 3.5;
This sort of write access is not possible for the CUDA version of this function.
As a safer way of writing single elements, use MF_setElement.
Read-only access to matrix elements is provided by the related functions, MF_element and MF_getElement. |
|
Return value | pointer to the matrix element MAm,n |
|
|