You are here:
Symbol Reference >
MtxExprInt Namespace
>
Classes
>
MatrixInt Record
>
public
>
Abs Method
>
MatrixInt.Abs Method ()
MtxVec VCL
MatrixInt.Abs Method ()
MatrixInt Record
|
MatrixInt Members
|
MtxExprInt Namespace
|
Abs Method
|
Example
Collapse All
Absolute values.
Pascal
function
Abs
:
TMtxVecInt
;
overload
;
Description
Calculate the absolute value of all calling object elemets in-place.
Example
Uses
MtxVecInt
;
procedure
Example;
var
a:
TMtxInt
; c: double;
begin
CreateIt
(a); a.SetIt([1,-2,3,4]); a.Abs;
// a = [1,2,3,4]
FreeIt
(a);
end
;
Examples on GitHub
Group
Abs Method
Links
MatrixInt Record
,
MatrixInt Members
,
MtxExprInt Namespace
,
Abs Method
,
Example
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic?
Send feedback!