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

Copy object values.

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

Copy each of Vec elements to the calling object. Size and Complex properties of the calling object are set implicitly to match Vec object.

Assign

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