MF_chexprint MD_chexprint ME_chexprint
MCF_chexprint MCD_chexprint MCE_chexprint
Functionprint a matrix to the screen (console applications only)
Syntax C/C++#include <MFstd.h>
void MF_chexprint( fMatrix MA, ui ht, ui len );
C++ MatObj#include <OptiVec.h>
void matrix<T>::chexprint();
Pascal/Delphiuses MFstd;
procedure MF_chexprint( MA:fMatrix; ht, len:UIntSize );
CUDA function C/C++#include <cudaMFstd.h>
int cudaMF_chexprint( fMatrix d_MA, ui ht, ui len );
int cudaMF_chexprint_buf( fMatrix d_MA, ui ht, ui len, fVector h_Wk );
CUDA function Pascal/Delphiuses MFstd;
function cudaMF_chexprint( d_MA:fMatrix; ht, len:UIntSize ): IntBool;
function cudaMF_chexprint_buf( d_MA:fMatrix; ht, len:UIntSize; h_Wk:fVector ): IntBool;
DescriptionWindows with Borland / Embarcadero compilers or MS Visual C++, DLL runtime:
The matrix MA is printed in hexadecimal format to the screen. Each line corresponds to one row of the matrix. The lines are numbered. If necessary, rows are cut off at the screen boundaries. If there are more rows than screen lines, proper paging is applied.

This family of functions is available only for console applications.

CUDA versions only: cudaM?_chexprint_buf takes a host vector h_Wk as additional argument. The latter serves as buffer memory and needs to be (at least) of the same size as d_MA, i.e. ht*len. By avoiding the need of cudaM?_chexprint to allocate its own buffer memory, cudaM?_chexprint_buf is slightly faster.
Other Windows compilers as well as Linux: As here the width and height of the text window are not easily available, calls to V?_chexprint are redirected to MF_hexprint.
The same is true for Visual C++ with static runtime (here for the reason of version-to-version incompatibilities).
Error handlingIf the number of columns exceeds the maximum number of entries possible in the current text mode, an error message "Cannot use requested format (too many entries per line)!" is generated; in this case, the rows are truncated.
See alsoMF_fprint,   MF_cprint,   VF_chexprint,   chapter 14

MatrixLib Table of Contents  OptiVec home