SLIP
1.4
|
Numerical Vector class. This container statisfies the RandomAccessContainer concepts of the Standard Template Library (STL). It extends the interface of Array adding arithmetical: +=, -=, *=, /=,+,-,/,*... and mathematical operators : min, max, abs, sqrt, cos, acos, sin, asin, tan, atan, exp, log, cosh, sinh, tanh, log10, sum, apply... More...
#include <Vector.hpp>
Public Types | |
typedef T | value_type |
typedef Vector< T > | self |
typedef const Vector< T > | const_self |
typedef value_type * | pointer |
typedef const value_type * | const_pointer |
typedef value_type & | reference |
typedef const value_type & | const_reference |
typedef ptrdiff_t | difference_type |
typedef std::size_t | size_type |
typedef pointer | iterator |
typedef const_pointer | const_iterator |
typedef slip::stride_iterator < pointer > | iterator_range |
typedef slip::stride_iterator < const_pointer > | const_iterator_range |
typedef std::reverse_iterator < iterator > | reverse_iterator |
typedef std::reverse_iterator < const_iterator > | const_reverse_iterator |
typedef std::reverse_iterator < iterator_range > | reverse_iterator_range |
typedef std::reverse_iterator < const_iterator_range > | const_reverse_iterator_range |
typedef slip::lin_alg_traits < value_type >::value_type | norm_type |
typedef iterator | default_iterator |
typedef const_iterator | const_default_iterator |
Public Member Functions | |
void | resize (const size_type new_n, const T &val=T()) |
Resizes a Vector. More... | |
std::string | name () const |
Returns the name of the class. More... | |
size_type | size () const |
Returns the number of elements in the Vector. More... | |
size_type | max_size () const |
Returns the maximal size (number of elements) in the Vector. More... | |
bool | empty () const |
Returns true if the Vector is empty. (Thus size() == 0) More... | |
void | swap (self &M) |
Swaps data with another Vector. More... | |
T & | min () const |
Returns the min element of the Vector according to the operator < if T is std::complex, it returns the element of minimum magnitude. More... | |
T & | max () const |
Returns the max element of the Vector according to the operator >, if T is std::complex, it returns the element of maximum magnitude. More... | |
T | sum () const |
Returns the sum of the elements of the Vector. More... | |
norm_type | Euclidean_norm () const |
Returns the Euclidean norm ![]() | |
norm_type | L2_norm () const |
Returns the Euclidean norm ![]() | |
norm_type | L1_norm () const |
Returns the L1 norm ( ![]() | |
norm_type | L22_norm () const |
Returns the L22 norm ( ![]() | |
norm_type | infinite_norm () const |
Returns the infinite norm ( ![]() | |
Vector< T > & | apply (T(*fun)(T)) |
Applys the one-parameter C-function fun to each element of the Vector. More... | |
Vector< T > & | apply (T(*fun)(const T &)) |
Applys the one-parameter C-function fun to each element of the Vector. More... | |
template<typename T> | |
Vector (typename Vector< T >::size_type n) | |
template<typename T> | |
Vector (typename Vector< T >::size_type n, const T &val) | |
template<typename T> | |
Vector (typename Vector< T >::size_type n, const T *val) | |
Constructors & Destructors | |
Vector () | |
Constructs a Vector. More... | |
Vector (const size_type n) | |
Constructs a Vector. More... | |
Vector (const size_type n, const T &val) | |
Constructs a Vector initialized by the scalar value val. More... | |
Vector (const size_type n, const T *val) | |
Constructs a Vector initialized by an array val. More... | |
template<typename InputIterator > | |
Vector (InputIterator first, InputIterator last) | |
Contructs a Vector from a range. More... | |
Vector (const self &rhs) | |
Constructs a copy of the Vector rhs. More... | |
~Vector () | |
Destructor of the Vector. More... | |
iterators | |
iterator | begin () |
Returns a read/write iterator that points to the first element in the Vector. Iteration is done in ordinary element order. More... | |
const_iterator | begin () const |
Returns a read-only (constant) iterator that points to the first element in the Vector. Iteration is done in ordinary element order. More... | |
iterator | end () |
Returns a read/write iterator that points one past the last element in the Vector. Iteration is done in ordinary element order. More... | |
const_iterator | end () const |
Returns a read-only (constant) iterator that points one past the last element in the Vector. Iteration is done in ordinary element order. More... | |
reverse_iterator | rbegin () |
Returns a read/write reverse iterator that points to the last element in the Vector. Iteration is done in reverse element order. More... | |
const_reverse_iterator | rbegin () const |
Returns a read-only (constant) reverse iterator that points to the last element in the Vector. Iteration is done in reverse element order. More... | |
reverse_iterator | rend () |
Returns a read/write reverse iterator that points to one before the first element in the Vector. Iteration is done in reverse element order. More... | |
const_reverse_iterator | rend () const |
Returns a read-only (constant) reverse iterator that points to one before the first element in the Vector. Iteration is done in reverse element order. More... | |
iterator_range | begin (const slip::Range< int > &range) |
Returns a read/write iterator_range that points the first element within the Range. Iteration is done in ordinary element order according to the Range. More... | |
const_iterator_range | begin (const slip::Range< int > &range) const |
Returns a read-only (constant) iterator_range that points the first element within the Range. Iteration is done in ordinary element order according to the Range. More... | |
iterator_range | end (const slip::Range< int > &range) |
Returns a read/write iterator_range that points one past the last element in the Vector. Iteration is done in ordinary element order according to the Range. More... | |
const_iterator_range | end (const slip::Range< int > &range) const |
Returns a read-only (constant) iterator_range that points one past the last element in the Vector. Iteration is done in ordinary element order according to the Range. More... | |
iterator | begin (const slip::Box1d< int > &box) |
Returns a read/write iterator that points the first element within the Box1d. Iteration is done in ordinary element order. More... | |
const_iterator | begin (const slip::Box1d< int > &box) const |
Returns a read-only (constant) iterator that points the first element within the Box1d. Iteration is done in ordinary element order. More... | |
iterator | end (const slip::Box1d< int > &box) |
Returns a read/write iterator that points one past the last element in the Vector. Iteration is done in ordinary element order. More... | |
const_iterator | end (const slip::Box1d< int > &box) const |
Returns a read-only (constant) iterator that points one past the last element within the Box1d. Iteration is done in ordinary element order. More... | |
reverse_iterator_range | rbegin (const slip::Range< int > &range) |
Returns a read/write reverse_iterator_range that points the end element within the Range. Iteration is done in reverse element order according to the Range. More... | |
const_reverse_iterator_range | rbegin (const slip::Range< int > &range) const |
Returns a read-only (constant) reverse_iterator_range that points the end element within the Range. Iteration is done in reverse element order according to the Range. More... | |
reverse_iterator_range | rend (const slip::Range< int > &range) |
Returns a read/write reverse_iterator_range that points one previous the first element in the Range. Iteration is done in reverse element order according to the Range. More... | |
const_reverse_iterator_range | rend (const slip::Range< int > &range) const |
Returns a read-only (constant) reverse_iterator_range that points one previous the first element in the Range. Iteration is done in reverse element order according to the Range. More... | |
reverse_iterator | rbegin (const slip::Box1d< int > &box) |
Returns a read/write reverse_iterator that points the last element within the Box1d. Iteration is done in reverse element order. More... | |
const_reverse_iterator | rbegin (const slip::Box1d< int > &box) const |
Returns a read-only (constant) reverse_iterator that points the last element within the Box1d. Iteration is done in reverse element order. More... | |
reverse_iterator | rend (const slip::Box1d< int > &box) |
Returns a read/write reverse_iterator that points one previous the first element in the Box1d. Iteration is done in reverse element order. More... | |
const_reverse_iterator | rend (const slip::Box1d< int > &box) const |
Returns a read-only (constant) reverse_iterator that points one previous the first element of the Box1d. Iteration is done in reverse element order. More... | |
Assignment operators and methods | |
self & | operator= (const self &rhs) |
Assign a Vector. More... | |
self & | operator= (const T &val) |
Assigns all the element of the Vector by val. More... | |
void | fill (const T &value) |
Fills the container range [begin(),begin()+size()) with copies of value. More... | |
void | fill (const T *value) |
Fills the container range [begin(),begin()+size()) with a copy of the value array. More... | |
template<typename InputIterator > | |
void | fill (InputIterator first, InputIterator last) |
Fills the container range [begin(),begin()+size()) with a copy of the range [first,last) More... | |
Element access operators | |
reference | operator[] (const size_type i) |
Subscript access to the data contained in the Vector. More... | |
const_reference | operator[] (const size_type i) const |
Subscript access to the data contained in the Vector. More... | |
reference | operator() (const size_type i) |
Subscript access to the data contained in the Vector. More... | |
const_reference | operator() (const size_type i) const |
Subscript access to the data contained in the Vector. More... | |
reference | operator() (const slip::Point1d< size_type > &p) |
Subscript access to the data contained in the Vector. More... | |
const_reference | operator() (const slip::Point1d< size_type > &p) const |
Subscript access to the data contained in the Vector. More... | |
self | operator() (const slip::Range< int > &range) |
Subscript access to the data contained in the Vector. More... | |
Arithmetic operators | |
self & | operator+= (const T &val) |
Add val to each element of the Vector. More... | |
self & | operator-= (const T &val) |
self & | operator*= (const T &val) |
self & | operator/= (const T &val) |
self | operator- () const |
self & | operator+= (const self &rhs) |
self & | operator-= (const self &rhs) |
self & | operator*= (const self &rhs) |
self & | operator/= (const self &rhs) |
Static Public Attributes | |
static const std::size_t | DIM = 1 |
Friends | |
class | boost::serialization::access |
i/o operators | |
std::ostream & | operator<< (std::ostream &out, const self &v) |
Write the Vector to the ouput stream. More... | |
Comparison operators | |
bool | operator== (const Vector< T > &x, const Vector< T > &y) |
Vector equality comparison. More... | |
bool | operator!= (const Vector< T > &x, const Vector< T > &y) |
Vector inequality comparison. More... | |
bool | operator< (const Vector< T > &x, const Vector< T > &y) |
Less than comparison operator (Vector ordering relation) More... | |
bool | operator> (const Vector< T > &x, const Vector< T > &y) |
More than comparison operator. More... | |
bool | operator<= (const Vector< T > &x, const Vector< T > &y) |
Less than equal comparison operator. More... | |
bool | operator>= (const Vector< T > &x, const Vector< T > &y) |
More than equal comparison operator. More... | |
Related Functions | |
(Note that these are not member functions.) | |
template<typename T > | |
T & | min (const Vector< T > &M1) |
Returns the min element of a Vector, if T is std::complex, it returns the element of minimum magnitude. More... | |
template<typename T > | |
T & | max (const Vector< T > &M1) |
Returns the max element of a Vector, if T is std::complex, it returns the element of maximum magnitude. More... | |
template<typename T > | |
Vector< typename slip::lin_alg_traits< T > ::value_type > | abs (const Vector< T > &V) |
Returns the abs value of each element of the Vector. More... | |
template<typename T > | |
Vector< T > | sqrt (const Vector< T > &V) |
Returns the sqrt value of each element of the Vector. More... | |
template<typename T > | |
Vector< T > | cos (const Vector< T > &V) |
Returns the cos value of each element of the Vector. More... | |
Vector< float > | acos (const Vector< float > &V) |
Returns the acos value of each element of the Vector. More... | |
Vector< double > | acos (const Vector< double > &V) |
Returns the acos value of each element of the Vector. More... | |
Vector< long double > | acos (const Vector< long double > &V) |
Returns the acos value of each element of the Vector. More... | |
template<typename T > | |
Vector< T > | sin (const Vector< T > &V) |
Returns the sin value of each element of the Vector. More... | |
Vector< float > | asin (const Vector< float > &V) |
Returns the asin value of each element of the Vector. More... | |
Vector< double > | asin (const Vector< double > &V) |
Returns the asin value of each element of the Vector. More... | |
Vector< long double > | asin (const Vector< long double > &V) |
Returns the asin value of each element of the Vector. More... | |
template<typename T > | |
Vector< T > | tan (const Vector< T > &V) |
Returns the tan value of each element of the Vector. More... | |
Vector< float > | atan (const Vector< float > &V) |
Returns the atan value of each element of the Vector. More... | |
Vector< double > | atan (const Vector< double > &V) |
Returns the atan value of each element of the Vector. More... | |
Vector< long double > | atan (const Vector< long double > &V) |
Returns the atan value of each element of the Vector. More... | |
template<typename T > | |
Vector< T > | exp (const Vector< T > &V) |
Returns the exp value of each element of the Vector. More... | |
template<typename T > | |
Vector< T > | log (const Vector< T > &V) |
Returns the log value of each element of the Vector. More... | |
template<typename T > | |
Vector< T > | cosh (const Vector< T > &V) |
Returns the cosh value of each element of the Vector. More... | |
template<typename T > | |
Vector< T > | sinh (const Vector< T > &V) |
Returns the sinh value of each element of the Vector. More... | |
template<typename T > | |
Vector< T > | tanh (const Vector< T > &V) |
Returns the tanh value of each element of the Vector. More... | |
template<typename T > | |
Vector< T > | log10 (const Vector< T > &V) |
Returns the log10 value of each element of the Vector. More... | |
Numerical Vector class. This container statisfies the RandomAccessContainer concepts of the Standard Template Library (STL). It extends the interface of Array adding arithmetical: +=, -=, *=, /=,+,-,/,*... and mathematical operators : min, max, abs, sqrt, cos, acos, sin, asin, tan, atan, exp, log, cosh, sinh, tanh, log10, sum, apply...
T. | Type of object in the Vector |
Definition at line 104 of file Vector.hpp.
typedef const_iterator slip::Vector< T >::const_default_iterator |
Definition at line 185 of file Vector.hpp.
typedef const_pointer slip::Vector< T >::const_iterator |
Definition at line 170 of file Vector.hpp.
typedef slip::stride_iterator<const_pointer> slip::Vector< T >::const_iterator_range |
Definition at line 173 of file Vector.hpp.
typedef const value_type* slip::Vector< T >::const_pointer |
Definition at line 162 of file Vector.hpp.
typedef const value_type& slip::Vector< T >::const_reference |
Definition at line 164 of file Vector.hpp.
typedef std::reverse_iterator<const_iterator> slip::Vector< T >::const_reverse_iterator |
Definition at line 176 of file Vector.hpp.
typedef std::reverse_iterator<const_iterator_range> slip::Vector< T >::const_reverse_iterator_range |
Definition at line 179 of file Vector.hpp.
typedef const Vector<T> slip::Vector< T >::const_self |
Definition at line 159 of file Vector.hpp.
typedef iterator slip::Vector< T >::default_iterator |
Definition at line 184 of file Vector.hpp.
typedef ptrdiff_t slip::Vector< T >::difference_type |
Definition at line 166 of file Vector.hpp.
typedef pointer slip::Vector< T >::iterator |
Definition at line 169 of file Vector.hpp.
typedef slip::stride_iterator<pointer> slip::Vector< T >::iterator_range |
Definition at line 172 of file Vector.hpp.
typedef slip::lin_alg_traits<value_type>::value_type slip::Vector< T >::norm_type |
Definition at line 181 of file Vector.hpp.
typedef value_type* slip::Vector< T >::pointer |
Definition at line 161 of file Vector.hpp.
typedef value_type& slip::Vector< T >::reference |
Definition at line 163 of file Vector.hpp.
typedef std::reverse_iterator<iterator> slip::Vector< T >::reverse_iterator |
Definition at line 175 of file Vector.hpp.
typedef std::reverse_iterator<iterator_range> slip::Vector< T >::reverse_iterator_range |
Definition at line 178 of file Vector.hpp.
typedef Vector<T> slip::Vector< T >::self |
Definition at line 158 of file Vector.hpp.
typedef std::size_t slip::Vector< T >::size_type |
Definition at line 167 of file Vector.hpp.
typedef T slip::Vector< T >::value_type |
Definition at line 157 of file Vector.hpp.
|
inline |
Constructs a Vector.
Definition at line 1407 of file Vector.hpp.
slip::Vector< T >::Vector | ( | const size_type | n | ) |
Constructs a Vector.
n | number of element in the Vector |
slip::Vector< T >::Vector | ( | const size_type | n, |
const T & | val | ||
) |
Constructs a Vector initialized by the scalar value val.
n | number of element in the Vector |
val | initialization value of the elements |
slip::Vector< T >::Vector | ( | const size_type | n, |
const T * | val | ||
) |
Constructs a Vector initialized by an array val.
n | number of element in the Vector |
val | initialization array value of the elements |
|
inline |
Contructs a Vector from a range.
first | An input iterator. |
last | An input iterator. |
Create a Vector consisting of copies of the elements from [first,last).
Definition at line 232 of file Vector.hpp.
|
inline |
Constructs a copy of the Vector rhs.
Definition at line 1433 of file Vector.hpp.
|
inline |
Destructor of the Vector.
Definition at line 1450 of file Vector.hpp.
|
inline |
Definition at line 1413 of file Vector.hpp.
|
inline |
Definition at line 1419 of file Vector.hpp.
|
inline |
Definition at line 1426 of file Vector.hpp.
|
inline |
Applys the one-parameter C-function fun to each element of the Vector.
fun | The one-parameter C function |
Definition at line 1868 of file Vector.hpp.
|
inline |
Applys the one-parameter C-function fun to each element of the Vector.
fun | The one-const-parameter C function |
Definition at line 1876 of file Vector.hpp.
|
inline |
Returns a read/write iterator that points to the first element in the Vector. Iteration is done in ordinary element order.
Definition at line 1474 of file Vector.hpp.
|
inline |
Returns a read-only (constant) iterator that points to the first element in the Vector. Iteration is done in ordinary element order.
Definition at line 1488 of file Vector.hpp.
|
inline |
Returns a read/write iterator_range that points the first element within the Range. Iteration is done in ordinary element order according to the Range.
range | Range to iterate. |
Definition at line 1537 of file Vector.hpp.
|
inline |
Returns a read-only (constant) iterator_range that points the first element within the Range. Iteration is done in ordinary element order according to the Range.
range | Range to iterate. |
Definition at line 1553 of file Vector.hpp.
|
inline |
Returns a read/write iterator that points the first element within the Box1d. Iteration is done in ordinary element order.
box | Box1d to iterate. |
Definition at line 1572 of file Vector.hpp.
|
inline |
Returns a read-only (constant) iterator that points the first element within the Box1d. Iteration is done in ordinary element order.
box | Box1d to iterate. |
Definition at line 1588 of file Vector.hpp.
|
inline |
Returns true if the Vector is empty. (Thus size() == 0)
Definition at line 1754 of file Vector.hpp.
|
inline |
Returns a read/write iterator that points one past the last element in the Vector. Iteration is done in ordinary element order.
Definition at line 1481 of file Vector.hpp.
|
inline |
Returns a read-only (constant) iterator that points one past the last element in the Vector. Iteration is done in ordinary element order.
Definition at line 1496 of file Vector.hpp.
|
inline |
Returns a read/write iterator_range that points one past the last element in the Vector. Iteration is done in ordinary element order according to the Range.
range | Range to iterate. |
Definition at line 1545 of file Vector.hpp.
|
inline |
Returns a read-only (constant) iterator_range that points one past the last element in the Vector. Iteration is done in ordinary element order according to the Range.
range | Range to iterate. |
Definition at line 1562 of file Vector.hpp.
|
inline |
Returns a read/write iterator that points one past the last element in the Vector. Iteration is done in ordinary element order.
box | Box1d to iterate. |
Definition at line 1580 of file Vector.hpp.
|
inline |
Returns a read-only (constant) iterator that points one past the last element within the Box1d. Iteration is done in ordinary element order.
box | Box1d to iterate. |
Definition at line 1597 of file Vector.hpp.
|
inline |
Returns the Euclidean norm of the elements of the Vector.
Definition at line 977 of file Vector.hpp.
|
inline |
Fills the container range [begin(),begin()+size()) with copies of value.
value | A reference-to-const of arbitrary type. |
Definition at line 704 of file Vector.hpp.
|
inline |
Fills the container range [begin(),begin()+size()) with a copy of the value array.
value | A pointer of arbitrary type. |
Definition at line 715 of file Vector.hpp.
|
inline |
Fills the container range [begin(),begin()+size()) with a copy of the range [first,last)
first | An input iterator. |
last | An input iterator. |
Definition at line 729 of file Vector.hpp.
|
inline |
Returns the infinite norm ( ) of the elements of the Vector.
Definition at line 1017 of file Vector.hpp.
|
inline |
Returns the L1 norm ( ) of the elements of the Vector.
Definition at line 997 of file Vector.hpp.
|
inline |
Returns the L22 norm ( ) of the elements of the Vector.
Definition at line 1007 of file Vector.hpp.
|
inline |
Returns the Euclidean norm of the elements of the Vector.
Definition at line 987 of file Vector.hpp.
|
inline |
Returns the max element of the Vector according to the operator >, if T is std::complex, it returns the element of maximum magnitude.
Definition at line 1852 of file Vector.hpp.
|
inline |
Returns the maximal size (number of elements) in the Vector.
Definition at line 1747 of file Vector.hpp.
|
inline |
Returns the min element of the Vector according to the operator < if T is std::complex, it returns the element of minimum magnitude.
Definition at line 1844 of file Vector.hpp.
|
inline |
Returns the name of the class.
Definition at line 1739 of file Vector.hpp.
reference slip::Vector< T >::operator() | ( | const size_type | i | ) |
Subscript access to the data contained in the Vector.
i | The index of the row for which the data should be accessed. |
This operator allows for easy, array-style, data access. Note that data access with this operator is unchecked and out_of_range lookups are not defined.
const_reference slip::Vector< T >::operator() | ( | const size_type | i | ) | const |
Subscript access to the data contained in the Vector.
i | The index of the row for which the data should be accessed. |
This operator allows for easy, array-style, data access. Note that data access with this operator is unchecked and out_of_range lookups are not defined.
reference slip::Vector< T >::operator() | ( | const slip::Point1d< size_type > & | p | ) |
Subscript access to the data contained in the Vector.
p | The index point corresponding of the element for which data should be accessed. |
This operator allows for easy, array-style, data access. Note that data access with this operator is unchecked and out_of_range lookups are not defined.
const_reference slip::Vector< T >::operator() | ( | const slip::Point1d< size_type > & | p | ) | const |
Subscript access to the data contained in the Vector.
p | The index point corresponding of the element for which data should be accessed. |
This operator allows for easy, array-style, data access. Note that data access with this operator is unchecked and out_of_range lookups are not defined.
|
inline |
Subscript access to the data contained in the Vector.
range | The range of the Vector. |
This operator allows for easy, 1d array-style, data access. Note that data access with this operator is unchecked and out_of_range lookups are not defined.
Definition at line 1726 of file Vector.hpp.
|
inline |
Definition at line 1782 of file Vector.hpp.
|
inline |
Definition at line 1826 of file Vector.hpp.
|
inline |
Add val to each element of the Vector.
val | value |
Definition at line 1766 of file Vector.hpp.
|
inline |
Definition at line 1808 of file Vector.hpp.
|
inline |
Definition at line 1799 of file Vector.hpp.
|
inline |
Definition at line 1774 of file Vector.hpp.
|
inline |
Definition at line 1817 of file Vector.hpp.
|
inline |
Definition at line 1790 of file Vector.hpp.
|
inline |
Definition at line 1835 of file Vector.hpp.
|
inline |
Assign a Vector.
Assign elements of Vector in rhs
rhs | Vector to get the values from. |
Definition at line 1439 of file Vector.hpp.
|
inline |
Assigns all the element of the Vector by val.
val | affectation value |
Definition at line 1457 of file Vector.hpp.
reference slip::Vector< T >::operator[] | ( | const size_type | i | ) |
Subscript access to the data contained in the Vector.
i | The index of the row for which the data should be accessed. |
This operator allows for easy, array-style, data access. Note that data access with this operator is unchecked and out_of_range lookups are not defined.
const_reference slip::Vector< T >::operator[] | ( | const size_type | i | ) | const |
Subscript access to the data contained in the Vector.
i | The index of the row for which the data should be accessed. |
This operator allows for easy, array-style, data access. Note that data access with this operator is unchecked and out_of_range lookups are not defined.
|
inline |
Returns a read/write reverse iterator that points to the last element in the Vector. Iteration is done in reverse element order.
Definition at line 1505 of file Vector.hpp.
|
inline |
Returns a read-only (constant) reverse iterator that points to the last element in the Vector. Iteration is done in reverse element order.
Definition at line 1519 of file Vector.hpp.
|
inline |
Returns a read/write reverse_iterator_range that points the end element within the Range. Iteration is done in reverse element order according to the Range.
range | Range to iterate. |
Definition at line 1639 of file Vector.hpp.
|
inline |
Returns a read-only (constant) reverse_iterator_range that points the end element within the Range. Iteration is done in reverse element order according to the Range.
range | Range to iterate. |
Definition at line 1655 of file Vector.hpp.
|
inline |
Returns a read/write reverse_iterator that points the last element within the Box1d. Iteration is done in reverse element order.
box | Box1d to iterate. |
Definition at line 1606 of file Vector.hpp.
|
inline |
Returns a read-only (constant) reverse_iterator that points the last element within the Box1d. Iteration is done in reverse element order.
box | Box1d to iterate. |
Definition at line 1622 of file Vector.hpp.
|
inline |
Returns a read/write reverse iterator that points to one before the first element in the Vector. Iteration is done in reverse element order.
Definition at line 1512 of file Vector.hpp.
|
inline |
Returns a read-only (constant) reverse iterator that points to one before the first element in the Vector. Iteration is done in reverse element order.
Definition at line 1527 of file Vector.hpp.
|
inline |
Returns a read/write reverse_iterator_range that points one previous the first element in the Range. Iteration is done in reverse element order according to the Range.
range | Range to iterate. |
Definition at line 1647 of file Vector.hpp.
|
inline |
Returns a read-only (constant) reverse_iterator_range that points one previous the first element in the Range. Iteration is done in reverse element order according to the Range.
range | Range to iterate. |
Definition at line 1664 of file Vector.hpp.
|
inline |
Returns a read/write reverse_iterator that points one previous the first element in the Box1d. Iteration is done in reverse element order.
box | Box1d to iterate. |
Definition at line 1614 of file Vector.hpp.
|
inline |
Returns a read-only (constant) reverse_iterator that points one previous the first element of the Box1d. Iteration is done in reverse element order.
box | Box1d to iterate. |
Definition at line 1631 of file Vector.hpp.
|
inline |
Resizes a Vector.
new_n | new dimension of the Vector |
val | new value for all the elements |
Definition at line 1465 of file Vector.hpp.
|
inline |
Returns the number of elements in the Vector.
Definition at line 1743 of file Vector.hpp.
|
inline |
Returns the sum of the elements of the Vector.
Definition at line 1860 of file Vector.hpp.
|
inline |
Swaps data with another Vector.
M | A Vector of the same element type |
Definition at line 1758 of file Vector.hpp.
|
related |
Returns the abs value of each element of the Vector.
V | The Vector |
Definition at line 2013 of file Vector.hpp.
Returns the acos value of each element of the Vector.
V | The Vector |
Definition at line 2041 of file Vector.hpp.
Returns the acos value of each element of the Vector.
V | The Vector |
Definition at line 2049 of file Vector.hpp.
Returns the acos value of each element of the Vector.
V | The Vector |
Definition at line 2057 of file Vector.hpp.
Returns the asin value of each element of the Vector.
V | The Vector |
Definition at line 2076 of file Vector.hpp.
Returns the asin value of each element of the Vector.
V | The Vector |
Definition at line 2084 of file Vector.hpp.
Returns the asin value of each element of the Vector.
V | The Vector |
Definition at line 2092 of file Vector.hpp.
Returns the atan value of each element of the Vector.
V | The Vector |
Definition at line 2109 of file Vector.hpp.
Returns the atan value of each element of the Vector.
V | The Vector |
Definition at line 2117 of file Vector.hpp.
Returns the atan value of each element of the Vector.
V | The Vector |
Definition at line 2125 of file Vector.hpp.
|
friend |
Definition at line 1060 of file Vector.hpp.
Returns the cos value of each element of the Vector.
V | The Vector |
Definition at line 2032 of file Vector.hpp.
Returns the cosh value of each element of the Vector.
V | The Vector |
Definition at line 2152 of file Vector.hpp.
Returns the exp value of each element of the Vector.
V | The Vector |
Definition at line 2134 of file Vector.hpp.
Returns the log value of each element of the Vector.
V | The Vector |
Definition at line 2143 of file Vector.hpp.
Returns the log10 value of each element of the Vector.
V | The Vector |
Definition at line 2179 of file Vector.hpp.
|
related |
Returns the max element of a Vector, if T is std::complex, it returns the element of maximum magnitude.
M1 | the Vector |
Definition at line 2006 of file Vector.hpp.
|
related |
Returns the min element of a Vector, if T is std::complex, it returns the element of minimum magnitude.
M1 | the Vector |
Definition at line 1999 of file Vector.hpp.
Vector inequality comparison.
x | A Vector |
y | A Vector of the same type of x |
Definition at line 2198 of file Vector.hpp.
Less than comparison operator (Vector ordering relation)
x | A Vector |
y | A Vector of the same type of x |
Definition at line 2208 of file Vector.hpp.
|
friend |
Write the Vector to the ouput stream.
out | output std:ostream |
v | Vector to write to the output stream |
Definition at line 1673 of file Vector.hpp.
Less than equal comparison operator.
x | A Vector |
y | A Vector of the same type of x |
Definition at line 2224 of file Vector.hpp.
Vector equality comparison.
x | A Vector |
y | A Vector of the same type of x |
Definition at line 2190 of file Vector.hpp.
More than comparison operator.
x | A Vector |
y | A Vector of the same type of x |
Definition at line 2216 of file Vector.hpp.
More than equal comparison operator.
x | A Vector |
y | A Vector of the same type of x |
Definition at line 2232 of file Vector.hpp.
Returns the sin value of each element of the Vector.
V | The Vector |
Definition at line 2066 of file Vector.hpp.
Returns the sinh value of each element of the Vector.
V | The Vector |
Definition at line 2161 of file Vector.hpp.
Returns the sqrt value of each element of the Vector.
V | The Vector |
Definition at line 2023 of file Vector.hpp.
Returns the tan value of each element of the Vector.
V | The Vector |
Definition at line 2101 of file Vector.hpp.
Returns the tanh value of each element of the Vector.
V | The Vector |
Definition at line 2170 of file Vector.hpp.
|
static |
Definition at line 188 of file Vector.hpp.