MF_chexprint
| MD_chexprint |
ME_chexprint |
MCF_chexprint |
MCD_chexprint |
MCE_chexprint |
MI_chexprint | MBI_chexprint | MSI_chexprint | MLI_chexprint | MQI_chexprint |
MU_chexprint | MUB_chexprint | MUS_chexprint | MUL_chexprint | MUQ_chexprint |
|
Function | print 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/Delphi | uses 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/Delphi | uses 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;
|
|
Description | Windows 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 handling | If 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.
|
|
|