You are here: Symbol Reference > clMtxVec Namespace > Classes > TOpenCLVector Class > public > Reverse Method > TOpenCLVector.Reverse Method (TOpenCLMtxVec)
MtxVec VCL
ContentsIndex
PreviousUpNext
TOpenCLVector.Reverse Method (TOpenCLMtxVec)

Reverse all Vec elements.

Pascal
function Reverse(const Vec: TOpenCLMtxVec): TOpenCLVector; overload;

Store the result in the calling vector elements. The TOpenCLBase.LengthLengthand TOpenCLBase.ComplexComplexroperties of the calling vector are set implicitly to match Vec vector. 

 

 

This overload reverses all vector elements.

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