Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Essential Math Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

abs()


Does not inherit

Local Index

No Entries

Summary

Prototypes Header File(s)

RWMathVec<double>

abs(const RWMathVec<double>&)

<rw/math/mathvec.h>

RWMathVec<float>

abs(const RWMathVec<float>&)

<rw/math/mathvec.h>

RWMathVec<int>

abs(const RWMathVec<int>&)

<rw/math/mathvec.h>

RWMathVec<double>

abs(const RWMathVec<DComplex>&)

<rw/math/mathvec.h>

RWMathVec<SChar>

abs(const RWMathVec<SChar>&)

<rw/math/mathvec.h>

RWGenMat<double>

abs(const RWGenMat<double>&)

<rw/math/genmat.h>

RWGenMat<float>

abs(const RWGenMat<float>&)

<rw/math/genmat.h>

RWGenMat<int>

abs(const RWGenMat<int>&)

<rw/math/genmat.h>

RWGenMat<double>

abs(const RWGenMat<DComplex>&)

<rw/math/genmat.h>

<rw/math/genmat.h>

RWGenMat<SChar>

abs(const RWGenMat<SChar>&)

<rw/math/genmat.h>

RWMathArray<double>

abs(const RWMathArray<double>&)

<rw/math/mtharray.h>

RWMathArray<float>

abs(const RWMathArray<float>&)

<rw/math/mtharray.h>

RWMathArray<int>

abs(const RWMathArray<int>&)

<rw/math/mtharray.h>

RWMathArray<double>

abs(const RWMathArray<DComplex>&)

<rw/math/mtharray.h>

<rw/math/mtharray.h>

RWMathArray<SChar>

abs(const RWMathArray<SChar>&)

<rw/math/mtharray.h>

Description

Returns the absolute values of each element. Note that the absolute value of a complex number is of type double. Therefore, if abs() is invoked for class RWMathVec<DComplex>, a vector of class RWMathVec<double> is returned.

Example Program

Program Output:



Previous fileTop of DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.