Summary
Reverse vector elements.
Class
TVec
Declaration
Function Reverse(Vec: TMtxVec): TVec;
Description
Reverse all Vec elements and store the result in the calling vector elements. The
Length and
Complex roperties of the calling vector are set implicitly to match Vec vector.
Declaration
Function Reverse: TVec;
Description
The method reverses vector elements by using the following equation:

This overload reverses all calling vector elements in-place.
Example 1
var a: TVec;
begin
CreateIt(a);
try
a.SetIt(False,[1,2,3,4]);
a.Reverse; // a = [4,3,2,1]
finally
FreeIt(a);
end;
end;
| Copyright 2008 Dew Research |
http://www.dewresearch.com