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

Matrix class for operator overloading in D2006 and later.

Syntax
C#
Visual Basic
public struct Matrix : IDeserializationCallback, IDisposable, IXmlSerializable { public TDouble2DAccess Values; public TCplx2DAccess CValues; public TDouble1DAccess Values1D; public TDCplx1DAccess CValues1D; public TSingle2DAccess SValues; public TSCplx2DAccess SCValues; public TSingle1DAccess SValues1D; public TSCplx1DAccess SCValues1D; }

MtxExpr.cs

Declare Matrix instead of TMtx to take advantage of operator overloading in D2006 and later. Be carefull to declare Matrix only for local variables with short lifetime. Call the Create method for Matrix, if the variable is a global variable or a variable with a longer life. It also makes sense to continue to use TMtx for global vars. If the Create method (constuctor) is not called, the Matrix record obtains TMtx object from object cache (fast create). If the Create mehod is called, the TMtx object is created (slower) for use by Matrix record. Object cache has limited size. 

Note Calling the Create method (constructor) is not mandatory.

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