You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TMtxVecBase Class
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TMtxVecBase Class

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

Dew_Math_TMtxVecBaseDew_Math_TMtxVecBaseDew_Math_TMtxVecBase
Syntax
C#
Visual Basic
public class TMtxVecBase : System.MarshalByRefObject, IXmlSerializable, IDisposable;

MtxVecBase.cs

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-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!