You are here:
Symbol Reference >
Dew Namespace
>
Dew.Math Namespace
>
Classes
>
MatrixInt Structure
>
MatrixInt Methods
>
Abs Method
>
MatrixInt.Abs Method ()
Dew Math for .NET
MatrixInt.Abs Method ()
MatrixInt Structure
MatrixInt Members
Dew.Math Namespace
Abs Method
Example
Collapse All
Absolute values.
Syntax
C#
Visual Basic
public
TMtxVecInt
Abs
();
Public
Function
Abs
()
As
TMtxVecInt
Remarks
Calculate the absolute value of all calling object elemets in-place.
Example
using
Dew.Math
;
using
Dew.Math.Units
;
namespace
Dew.Examples() {
void
Example() {
TMtxInt
a; MtxVecInt.CreateIt(
out
a);
try
{ a.SetIt(
new
int
[] {1,-2,3,4}); a.Abs();
// a = [1,2,3,4]
}
finally
{ MtxVecInt.FreeIt(
ref
a); } } }
Group
Abs Method
Links
MatrixInt Structure
,
MatrixInt Members
,
Dew.Math Namespace
,
Abs Method
,
Example
Copyright (c) 1999-2022 by Dew Research. All rights reserved.
Contents
|
Index
|
Home
What do you think about this topic?
Send feedback!