You are here: Symbol Reference > MtxVecBase Namespace > Classes > TMtxVecBase Class
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtxVecBase Class

Base class for all one/two/../n dimensional arrays.

MtxVecBase_TMtxVecBase
Pascal
TMtxVecBase = class(TPersistent);

This is the basic vector/matrix object. It handles memory allocation and basic vector arithmetics. 

It works with memory obtained directly from the operating system. The object bypasses the default Delphi memory manager and frees it from the load for which it is not very well suited. Memory allocation is cached via an "object cache" mechanism. 

Error checking 

All methods and properties of TMtxVec descendants are explicitly "range checked". Range checking ensures that the user can not read or write values past the size of the allocated memory. Once the code is compiled without assertations, range checking is disabled and higher performance can be achieved in some cases. Every effort has been made to prevent the user of the library to make an error that would result in memory overwrite. (Writing or reading to parts of the memory which were not allocated before and thus overwriting data of another part of the application.)

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!