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

Absolute values.

Pascal
function Abs: TOpenCLMtxVec; overload;

Calculate the absolute value of all calling object elemets in-place.

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