#include <vector.h>
Inheritance diagram for colarray::Vector< T >:

Public Member Functions | |
| Vector () | |
| Vector (int_t n) | |
| Vector (const Vector &x, int_t start, int_t end) | |
| Vector (const Vector &a) | |
| ~Vector () | |
| const T & | operator() (int_t i) const |
| T & | operator() (int_t i) |
| const T & | operator[] (int i) const |
| T & | operator[] (int i) |
| Vector & | operator= (const Vector &) |
| T | operator= (const T v) |
| void | inject (const Vector< T > &x) |
Public Attributes | |
| int_t | _n |
| int_t | _inc |
| T * | _v |
Protected Member Functions | |
| Vector (T *v, int_t n, int_t inc, T *data, int *refCount) | |
Protected Attributes | |
| T * | _data |
| int * | _refCount |
Friends | |
| std::ostream & | operator (std::ostream &, const Vector< T > &) |
Definition at line 39 of file vector.h.
| colarray::Vector< T >::Vector | ( | ) | [inline] |
| colarray::Vector< T >::Vector | ( | int_t | n | ) |
Creates a Vector of length n.
Definition at line 212 of file vector.h.
References colarray::Vector< T >::_data, colarray::Vector< T >::_inc, colarray::Vector< T >::_n, colarray::Vector< T >::_refCount, and colarray::Vector< T >::_v.
| colarray::Vector< T >::Vector | ( | const Vector< T > & | x, | |
| int_t | start, | |||
| int_t | end | |||
| ) | [inline] |
| colarray::Vector< T >::Vector | ( | const Vector< T > & | a | ) | [inline] |
| colarray::Vector< T >::Vector | ( | T * | v, | |
| int_t | n, | |||
| int_t | inc, | |||
| T * | data, | |||
| int * | refCount | |||
| ) | [inline, protected] |
| colarray::Vector< T >::~Vector | ( | ) | [inline] |
Definition at line 223 of file vector.h.
References colarray::Vector< T >::_data, and colarray::Vector< T >::_refCount.
| void colarray::Vector< T >::inject | ( | const Vector< T > & | x | ) |
Copy the contents of Vector x to "myself".
Definition at line 263 of file vector.h.
References colarray::Vector< T >::_n, and x.
Referenced by mesh::Tet::cartesian_to_simplex(), and NedelecElement::surface_integral_curl().
| T& colarray::Vector< T >::operator() | ( | int_t | i | ) | [inline] |
| const T& colarray::Vector< T >::operator() | ( | int_t | i | ) | const [inline] |
| T colarray::Vector< T >::operator= | ( | const T | v | ) |
Reimplemented in colarray::ColumnVector< T >, and colarray::RowVector< T >.
Definition at line 234 of file vector.h.
References colarray::Vector< T >::_n.
| Vector& colarray::Vector< T >::operator= | ( | const Vector< T > & | ) | [inline] |
| T& colarray::Vector< T >::operator[] | ( | int | i | ) | [inline] |
| const T& colarray::Vector< T >::operator[] | ( | int | i | ) | const [inline] |
| std::ostream& operator | ( | std::ostream & | , | |
| const Vector< T > & | ||||
| ) | [friend] |
Referenced by postprocess::VtkExport::get_eigenpair().
T* colarray::Vector< T >::_data [protected] |
pointer to data array
Definition at line 49 of file vector.h.
Referenced by colarray::Vector< T >::Vector(), and colarray::Vector< T >::~Vector().
| int_t colarray::Vector< T >::_inc |
stride
Definition at line 44 of file vector.h.
Referenced by colarray::Vector< double >::operator()(), colarray::Vector< double >::operator[](), and colarray::Vector< T >::Vector().
| int_t colarray::Vector< T >::_n |
number of elements
Definition at line 42 of file vector.h.
Referenced by postprocess::VtkExport::get_eigenpair(), blas::getrf(), colarray::Vector< T >::inject(), colarray::Vector< T >::operator=(), NedelecElement::surface_integral_curl(), and colarray::Vector< T >::Vector().
int* colarray::Vector< T >::_refCount [protected] |
pointer to reference counter. Can be 0, in which case no reference counting is perfomed.
Definition at line 52 of file vector.h.
Referenced by colarray::Vector< T >::Vector(), colarray::Vector< double >::Vector(), and colarray::Vector< T >::~Vector().
| T* colarray::Vector< T >::_v |
pointer to 1st vector element
Definition at line 46 of file vector.h.
Referenced by blas::gesv(), blas::getrf(), colarray::Vector< double >::operator()(), colarray::Vector< double >::operator[](), q_factor(), blas::syev(), and colarray::Vector< T >::Vector().
1.4.7