You are here: Symbol Reference > clMtxExpr Namespace > Classes > clMatrix Record > public > RealPart Method > clMatrix.RealPart Method (TOpenCLMtxVec)
MtxVec VCL
ContentsIndex
PreviousUpNext
clMatrix.RealPart Method (TOpenCLMtxVec)

Gets real part of complex object values.

Pascal
function RealPart(const Vec: TOpenCLMtxVec): TOpenCLMtxVec; overload;

The method method gets the real part of a complex object Vec and stores the real results in the calling object. Size and Complex properties of the calling object are set implicitly to match Vec object. Vec Complex property must be true otherwise an exception is raised.

var a,b: clMatrix; begin a.CopyCplxFromArray(1,2,TSingleArray.Create(1,2,3,4)); // = [1+2i, 3+4i] b.RealPart(a); // b = [1,3] end;
Examples on GitHub
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!