MF_matrix0 MD_matrix0 ME_matrix0
MCF_matrix0 MCD_matrix0 MCE_matrix0
MI_matrix0MBI_matrix0MSI_matrix0MLI_matrix0MQI_matrix0
MU_matrix0MUB_matrix0MUS_matrix0MUL_matrix0MUQ_matrix0
Functionallocate memory for a matrix and initialize all elements with 0
Syntax C/C++#include <MFstd.h>
fMatrix F_matrix0( ui ht, ui len );
Pascal/Delphiuses MFstd;
function MF_matrix0( ht, len:UIntSize ): fMatrix;
DescriptionThe functions of this family are almost identical to those of the MF_matrix family; in addition to allocating memory, they initialize all elements with 0. (Calls to MF_matrix and MF_matrix0 may be mixed; they and the vector allocation functions, VF_vector etc. use the same tables to keep track of the handles and pointers). For further information, see MF_matrix.
Error handlingIf there is not enough memory available, or if size is zero, an error message "Not enough memory" is displayed and the program aborted.
16-bit models:
If more than 64 kB of memory are requested, an error message "Vector > 64 kB not possible" is displayed and the program aborted (except in the model HUGE). If any of the two matrix dimensions exceeds the 64 kB limit, an error message "Invalid matrix dimension(s)" is displayed and the program aborted, even in the model HUGE.
32-bit:
If more than 4 GB of memory are requested, an error message "Vector > 4 GB not possible" is displayed and the program aborted. If already a single matrix dimensions exceeds this limit, an error message "Invalid matrix dimension(s)" is displayed and the program aborted.
Return valueC/C++: Pointer to the array of row pointers
Pascal/Delphi: Pointer to the allocated memory
See alsoMF_matrix,   VF_vector0,   chapter 2

MatrixLib Table of Contents  OptiVec home