Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

RWMathVec<T>



Data Type and Member Function Indexes
(exclusive of constructors and destructors)

Synopsis

#include <rw/math/mathvec.h>
RWMathVec<T> vector;

Description

Class RWMathVec<T> is a templatized vector class.

Example

Public Constructors

RWMathVec()
RWMathVec(unsigned n, RWUninitialized);
RWMathVec(unsigned n, T initval);
RWMathVec(unsigned n, T initval, T incr);
RWMathVec(unsigned n, RWTRand<RWRandGenerator>& r);
RWMathVec(const T* dat,unsigned n);
RWMathVec(const RWMathVec<T>&);
RWMathVec(const RWMathVecPick<T>& p);
RWMathVec(const char *s);
RWMathVec<DComplex>::RWMathVec(const RWMathVec<double>& re,
                               const RWMathVec<double>& im);

Public Member Functions

RWMathVec<T>
apply(RWMathVec<T>::mathFunType) const;
RWMathVec<RWMathVec<T>::norm_type>     
apply2(RWMathVec<T>::mathFunType2) const
RWMathVec<T>::iterator
begin();
RWMathVec<T>::const_iterator
begin() const;
unsigned   
binaryStoreSize() const;
T* 
data();
const T* 
data() const;
RWMathVec<T>
deepCopy() const;
RWMathVec<T>
copy() const;
void   
deepenShallowCopy();
RWMathVec<T>::iterator 
end();
RWMathVec<T>::const_iterator 
end() const;
unsigned
length() const;
RWMathVecPick<T>
pick(const RWIntVec& v);
RWMathVec<T>&
reference(RWMathVec& v);
void
reshape(unsigned n);
void
resize(unsigned n);
void
restoreFrom(RWvistream&);
void
restoreFrom(RWFile&);
void
saveOn(RWvostream&) const;
void
saveOn(RWFile&) const;
RWMathVec<T>
slice(int start, unsigned n, int stride=1) const;
int   
stride() const

Public Member Operators

T&                  operator[](int i);
T                   operator[](int i) const;
RWMathVec<T>        operator[](RWSlice& i);
const RWMathVec<T>  operator[](RWSlice& i) const;
T&                  operator()(int i);
T                   operator()(int i) const;
RWMathVec<T>        operator()(RWSlice& i);
const RWMathVec<T>  operator()(RWSlice& i) const;
RWMathVec<T>&       operator++();
void                operator++(int);
RWMathVec<T>&       operator--();
void                operator--(int);
RWMathVec<T>&    operator=(const RWMathVec<T>& m);
RWMathVec<T>&    operator+=(const RWMathVec<T>& m);
RWMathVec<T>&    operator-=(const RWMathVec<T>& m);
RWMathVec<T>&    operator*=(const RWMathVec<T>& m);
RWMathVec<T>&    operator/=(const RWMathVec<T>& m);
RWMathVec<T>&    operator=(const T&);
RWMathVec<T>&    operator+=(const T&);
RWMathVec<T>&    operator-=(const T&);
RWMathVec<T>&    operator*=(const T&);
RWMathVec<T>&    operator/=(const T&);
RWBoolean    operator==(const RWMathVec<T>&);
RWBoolean    operator!=(const RWMathVec<T>&);
operator RWMathVec<promote_type>();

Global Operators

RWMathVec<T>    operator-(const RWMathVec<T>&);
RWMathVec<T>    operator+(const RWMathVec<T>&);
RWMathVec<T>    operator*(const RWMathVec<T>&, 
const RWMathVec<T>&); RWMathVec<T> operator/(const RWMathVec<T>&,
const RWMathVec<T>&); RWMathVec<T> operator+(const RWMathVec<T>&,
const RWMathVec<T>&); RWMathVec<T> operator-(const RWMathVec<T>&,
const RWMathVec<T>&); RWMathVec<T> operator*(const RWMathVec<T>&, const T&); RWMathVec<T> operator*(const T&, const RWMathVec<T>&); RWMathVec<T> operator/(const RWMathVec<T>&, const T&); RWMathVec<T> operator/(const T&, const RWMathVec<T>&); RWMathVec<T> operator+(const RWMathVec<T>&, const T&); RWMathVec<T> operator+(const T&, const RWMathVec<T>&); RWMathVec<T> operator-(const RWMathVec<T>&, const T&); RWMathVec<T> operator-(const T&, const RWMathVec<T>&);
ostream&    operator<<(ostream& s,const RWMathVec<T>& v);
istream&    operator>>(istream& s, RWMathVec<T>& v);

Related Global Functions (Templatized)

acos         asin         atan
atan2        ceil         cos
cosh         cumsum       delta
dot          exp          expandEven
expandOdd    floor        log
log10        maxIndex     maxValue
mean         minIndex     minValue
pow          prod         reverse
sin          sinh         sqrt
sum          tan          tanh

Related Global Functions (Non-Templatized)

abs          arg                    conj
conjDot      expandConjugateEven    expandConjugateOdd
frobNorm     imag                   l1Norm
l2Norm       linfNorm               norm
maxNorm      real                   rootsOfOne
variance     spectralVariance       toChar
toFloat      toInt

See Also

RWConvertMathVec<From,To>


Previous fileTop of DocumentContentsIndexNext file

©Copyright 1999, Rogue Wave Software, Inc.
Send mail to report errors or comment on the documentation.