MF_Dia_extract MD_Dia_extract ME_Dia_extract
MCF_Dia_extract MCD_Dia_extract MCE_Dia_extract
MI_Dia_extractMBI_Dia_extractMSI_Dia_extractMLI_Dia_extractMQI_Dia_extract
MU_Dia_extractMUB_Dia_extractMUS_Dia_extractMUL_Dia_extractMUQ_Dia_extrac
Functioncopy the diagonal of a square matrix into a vector
Syntax C/C++#include <MFstd.h>
void MF_Dia_extract( fVector Y, fMatrix MA, ui len );
C++ MatObj#include <OptiVec.h>
void vector<T>::Dia_extract( const matrix<T>& MA );
Pascal/Delphiuses MFstd;
procedure MF_Dia_extract( Y:fVector; MA:fMatrix; len:UIntSize );
CUDA function C/C++#include <cudaMFstd.h>
int cudaMF_Dia_extract( fVector d_Y, fMatrix d_MA, ui len );
void MFcu_Dia_extract( fVector h_Y, fMatrix h_MA, ui len );
CUDA function Pascal/Delphiuses MFstd;
function cudaMF_Dia_extract( d_Y:fVector; d_MA:fMatrix; len:UIntSize ): IntBool;
procedure MFcu_Dia_extract( h_Y:fVector; h_MA:fMatrix; len:UIntSize );
DescriptionYi = MAi,i,  i=0,...,len-1
See alsoMF_Dia_equV,   chapter 3,   chapter 6

MatrixLib Table of Contents  OptiVec home