You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > MatrixInt Structure > MatrixInt Methods > Abs Method > MatrixInt.Abs Method ()
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
MatrixInt.Abs Method ()

Absolute values.

Syntax
C#
Visual Basic
public TMtxVecInt Abs();

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

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); } } }
Copyright (c) 1999-2022 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!