You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TMtxVecInt Class > TMtxVecInt Methods > Abs Method > TMtxVecInt.Abs Method ()
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TMtxVecInt.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() { TVecInt a; MtxVecInt.CreateIt(out a); try { a.SetIt(new int[] {1,-2,3,4}); a.Abs(); // a = [1,2,3,4] } finally { MtxVec.FreeIt(ref a); } } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!