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

RWMathVec<T>

Module:  Essential Math    Group:  Math Collection classes


Does not inherit

Local Index

Members

Non-Members

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;
size_t
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&);
bool    operator==(const RWMathVec<T>&);
bool    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)

Related Global Functions (Non-Templatized)

See Also

RWConvertMathVec<From,To>



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.