Using the C++ Math Library    

Memory Management

MATLAB users usually don't worry about memory management because the MATLAB interpreter manages memory for them. This is in marked contrast to most programming languages, which require their users to explicitly manage their own memory. The MATLAB C++ Math Library uses a memory management scheme that both performs well and ensures there are no memory leaks. This means that, in most cases, users of the MATLAB C++ Math Library do not need to implement complex memory management mechanisms because the library already contains one.

If you need to change the way the library allocates its memory, the library provides memory management routines that let you substitute your own scheme. Memory Management in Chapter 7 describes how to use the routines.


 Errors Stand-Alone Programs