#include <simple_vector.hpp>
Public Member Functions | |
| simple_vector () | |
| Default constructor. | |
| simple_vector (index_t length) | |
| Constructur that allocates memory (if OWNS = true) length Length of vector. | |
| void | resize (index_t length) |
| Resize vector. | |
| index_t | length () const |
| Get vector length. | |
| const_data_iterator | getElmIterator (index_t j) const |
| Get pointer to element (const). | |
| data_iterator | getElmIterator (index_t j) |
| Get pointer to element. | |
| T & | operator() (index_t j) |
| Get an element reference. | |
| T | operator() (index_t j) const |
| Get an element (const version). | |
| void | fill (const T value) |
| Fill with a value. | |
| simple_vector & | operator= (const T value) |
| Assigment operator that fills with value. | |
| simple_vector & | operator *= (const T factor) |
| Scale with scalar. | |
| simple_vector< T > & | operator= (const simple_vector< T > &src) |
| Copy from simple_vector<T>. | |
| void simple_dense::simple_vector< T >::fill | ( | const T | value | ) | [inline] |
Fill with a value.
| value | Value to fill with |
| data_iterator simple_dense::simple_vector< T >::getElmIterator | ( | index_t | j | ) | [inline] |
Get pointer to element.
| j | Index of element |
| const_data_iterator simple_dense::simple_vector< T >::getElmIterator | ( | index_t | j | ) | const [inline] |
Get pointer to element (const).
| j | Index of element |
| simple_vector& simple_dense::simple_vector< T >::operator *= | ( | const T | factor | ) | [inline] |
Scale with scalar.
| factor | Scaling factor |
| T simple_dense::simple_vector< T >::operator() | ( | index_t | j | ) | const [inline] |
Get an element (const version).
| j | Index of element. |
Here is the call graph for this function:
| T& simple_dense::simple_vector< T >::operator() | ( | index_t | j | ) | [inline] |
Get an element reference.
| j | Index of element |
Here is the call graph for this function:
| simple_vector<T>& simple_dense::simple_vector< T >::operator= | ( | const simple_vector< T > & | src | ) | [inline] |
Copy from simple_vector<T>.
| sec | Vector to copy. |
Here is the call graph for this function:
| void simple_dense::simple_vector< T >::resize | ( | index_t | length | ) | [inline] |
Resize vector.
| length | new length of vector |
1.4.7