MF_Pelement MD_Pelement ME_Pelement
MCF_Pelement MCD_Pelement MCE_Pelement
MI_PelementMBI_PelementMSI_PelementMLI_PelementMQI_Pelement
MU_PelementMUB_PelementMUS_PelementMUL_PelementMUQ_Pelement
Functionget 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/Delphiuses 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/Delphiuses MFstd;
function cudaMF_Pelement( d_MA:fMatrix; ht, len, m, n:UIntSize ): PSingle;
DescriptionA 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/DelphiMF_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 valuepointer to the matrix element MAm,n
See alsoMF_element,   MF_getElement,   MF_setElement,   chapter 2

MatrixLib Table of Contents  OptiVec home