template<int N> class adevs_vec
An N dimensional, double valued vector
Public Methods
-
adevs_vec()
- Creates a vector whose elements are 00
-
adevs_vec(const adevs_vec<N>& src)
- Copy constructor
-
adevs_vec(const double* src)
- Creates a vector whose elements are taken from the source array
-
const adevs_vec<N> & operator=(const double* src)
- Assign an array of N doubles to the elements of this vector
-
const adevs_vec<N> & operator=(const adevs_vec<N>& src)
- Assign a vector value to this vector
-
double& operator[](int k)
- Return a reference to the kth element
-
double get(int k) const
- Get a read-only copy of the kth element
-
const double* operator*() const
- Get a pointer to the array that represents the vector
-
int size() const
- Returns the number of elements in the vector
-
adevs_vec<N> operator+(const adevs_vec<N>& x) const
- Element-wise addition
-
const adevs_vec<N> & operator+=(const adevs_vec<N>& x)
- Element-wise add and assign
-
adevs_vec<N> operator-(const adevs_vec<N>& x) const
- Element-wise subtraction
-
const adevs_vec<N> & operator-=(const adevs_vec<N>& x)
- Element-wise subtract and assign
-
adevs_vec<N> operator*(double x) const
- Scalar multiplication
-
adevs_vec<N> operator/(double x) const
- Scalar division
-
double norm1() const
- Computes the L1 norm
-
double norm2() const
- Computes the L2 norm
-
double max() const
- Find the largest element in the vector
-
double min() const
- Find the smallest element in the vector
-
~adevs_vec()
- Destructor
Documentation
An N dimensional, double valued vector
adevs_vec()
- Creates a vector whose elements are 00
adevs_vec(const adevs_vec<N>& src)
- Copy constructor
adevs_vec(const double* src)
- Creates a vector whose elements are taken from the source array
const adevs_vec<N> & operator=(const double* src)
- Assign an array of N doubles to the elements of this vector
const adevs_vec<N> & operator=(const adevs_vec<N>& src)
- Assign a vector value to this vector
double& operator[](int k)
- Return a reference to the kth element
double get(int k) const
- Get a read-only copy of the kth element
const double* operator*() const
- Get a pointer to the array that represents the vector
int size() const
- Returns the number of elements in the vector
adevs_vec<N> operator+(const adevs_vec<N>& x) const
- Element-wise addition
const adevs_vec<N> & operator+=(const adevs_vec<N>& x)
- Element-wise add and assign
adevs_vec<N> operator-(const adevs_vec<N>& x) const
- Element-wise subtraction
const adevs_vec<N> & operator-=(const adevs_vec<N>& x)
- Element-wise subtract and assign
adevs_vec<N> operator*(double x) const
- Scalar multiplication
adevs_vec<N> operator/(double x) const
- Scalar division
double norm1() const
- Computes the L1 norm
double norm2() const
- Computes the L2 norm
double max() const
- Find the largest element in the vector
double min() const
- Find the smallest element in the vector
~adevs_vec()
- Destructor
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.