Knowledge Base

MtxVec expressions

Supported since Delphi 2006

It was Delphi 2006 that first introduced the ability to overload operators on records. This feature enabled MtxVec to add high performance support for using vectors, matrices and complex numbers in expressions.

Operator overloading

It is possible to mix vectors, matrices, complex numbers and scalars in the Delphi code. It is sufficient to declare the type as Vector or Matrix without the need to worry about object creation or destruction. Freeing of objects is automatically wrapped by the compiler in to try/finally blocks. Internally object and memory allocations are cached ensuring best in class performance. The syntax is best demonstrated by an example:

MtxVec Expressions

MtxVec Expressions are available for Delphi/C++Builder 2006 and later.


© DewResearch 1997 - 2017 All Rights Reserved.
E-mail This email address is being protected from spambots. You need JavaScript enabled to view it..
Delphi & C++ Builder are registered trademarks of Embarcadero Corporation. All other brands and product names are trademarks or registered trademarks of their respective owners.