template<int N> class adevs_vec

A N dimensional, double valued vector

Public Methods

[more] adevs_vec()
Creates a vector whose elements are 00
[more] adevs_vec(const adevs_vec<N>& src)
Copy constructor
[more]const adevs_vec<N> & operator=(const double* src)
Assign an array of N doubles to the elements of this vector
[more]const adevs_vec<N> & operator=(const adevs_vec<N>& src)
Assign a vector value to this vector
[more]double& operator[](int k)
Return a ref.
[more]double get(int k) const
Get a read-only copy of the kth element
[more]const double* operator*() const
Get a pointer to the array that represents the vector
[more]int size() const
Returns the number of elements in the vector
[more]adevs_vec<N> operator+(const adevs_vec<N>& x) const
Elementwise addition
[more]const adevs_vec<N> & operator+=(const adevs_vec<N>& x)
Elementwise add and assign
[more]adevs_vec<N> operator-(const adevs_vec<N>& x) const
Elementwise subtraction
[more]const adevs_vec<N> & operator-=(const adevs_vec<N>& x)
Elementwise subtract and assign
[more]adevs_vec<N> operator*(double x) const
Scalar multiplication
[more]adevs_vec<N> operator/(double x) const
Scalar division
[more]double norm1() const
Computes the L1 norm
[more]double norm2() const
Computes the L2 norm
[more]double max() const
Find the largest element in the vector
[more]double min() const
Find the smallest element in the vector
[more] ~adevs_vec()
Destructor


Documentation

A N dimensional, double valued vector
o adevs_vec()
Creates a vector whose elements are 00

o adevs_vec(const adevs_vec<N>& src)
Copy constructor

oconst adevs_vec<N> & operator=(const double* src)
Assign an array of N doubles to the elements of this vector

oconst adevs_vec<N> & operator=(const adevs_vec<N>& src)
Assign a vector value to this vector

odouble& operator[](int k)
Return a ref. to the kth element

odouble get(int k) const
Get a read-only copy of the kth element

oconst double* operator*() const
Get a pointer to the array that represents the vector

oint size() const
Returns the number of elements in the vector

oadevs_vec<N> operator+(const adevs_vec<N>& x) const
Elementwise addition

oconst adevs_vec<N> & operator+=(const adevs_vec<N>& x)
Elementwise add and assign

oadevs_vec<N> operator-(const adevs_vec<N>& x) const
Elementwise subtraction

oconst adevs_vec<N> & operator-=(const adevs_vec<N>& x)
Elementwise subtract and assign

oadevs_vec<N> operator*(double x) const
Scalar multiplication

oadevs_vec<N> operator/(double x) const
Scalar division

odouble norm1() const
Computes the L1 norm

odouble norm2() const
Computes the L2 norm

odouble max() const
Find the largest element in the vector

odouble min() const
Find the smallest element in the vector

o ~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++.