You are here:
Symbol Reference >
MtxExprInt Namespace
>
Classes
>
VectorInt Record
>
public
>
Abs Method
>
VectorInt.Abs Method ()
MtxVec VCL
VectorInt.Abs Method ()
VectorInt Record
|
VectorInt 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:
TVecInt
; 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
VectorInt Record
,
VectorInt Members
,
MtxExprInt Namespace
,
Abs Method
,
Example
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic?
Send feedback!