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

Absolute values.

Pascal
function Abs: TOpenCLMtxVec; overload;

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

var a: TOpenCLVector; c: double; begin CreateIt(a); a.CopyCplxFromArray(TSingleArray.Create(1,-2,3,4)); a.Abs; FreeIt(a); end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!