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

Defines if object values are complex.

Syntax
C#
Visual Basic
public bool Complex;

If true, Matrix will treat it's elements as complex numbers. Two successive number in the values array be treated as real and imaginary part of the complex number. When property is false, object will treat it's elements as real numbers. You should always set the value of the Complex property before setting object size (Length for vector or Rows,Cols for matrix). Setting Complex from true to false does not cause memory reallocation. It simply doubles the value of the Length property. Setting Complex from false to true halves the vector length or number of matrix columns, but retains all data. Complex property is initially false.

var a,b,c,d: Matrix; begin a.SetIt(1,2,True,[1,2,3,4]); b.SetIt(1,4,False,[8,9,6,7]); b.Complex := True; c.Mul(a,b); // = [(1+2i)*(8*9i), (3+4i)*(6+7i)] end;
Copyright (c) 1999-2022 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!