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

Absolute values.

Pascal
function Abs: TMtxVec; overload;

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

var a,b: Matrix; begin a.SetIt(1,2,True,[1,-2,3,4]); a.Abs; a := Abs(a); //same as a.Abs b.Abs(a); //same as b := Abs(a); b := Abs(a); end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!