You are here: Symbol Reference > clMtxExpr Namespace > Classes > clVector Record > public > Reverse Method > clVector.Reverse Method (TOpenCLMtxVec)
MtxVec VCL
ContentsIndex
PreviousUpNext
clVector.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.ComplexComplexproperties of the calling vector are set implicitly to match Vec vector. 

 

 

This overload reverses all vector elements.

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