#include <vector.h>
Inheritance diagram for colarray::ColumnVector< T >:
Public Member Functions | |
ColumnVector () | |
ColumnVector (int_t n) | |
ColumnVector (const ColumnVector &x, int_t start, int_t end) | |
ColumnVector (const Matrix< T > &A, int_t i) | |
ColumnVector (T *v, int n) | |
const T & | operator() (int_t i) const |
T & | operator() (int_t i) |
const T & | operator[] (int i) const |
T & | operator[] (int i) |
T | operator= (const T v) |
Element access to a ColumnVector is faster when compared to a general Vector, because one integer multiplication is saved.
Definition at line 120 of file vector.h.
colarray::ColumnVector< T >::ColumnVector | ( | ) | [inline] |
colarray::ColumnVector< T >::ColumnVector | ( | int_t | n | ) | [inline] |
colarray::ColumnVector< T >::ColumnVector | ( | const ColumnVector< T > & | x, | |
int_t | start, | |||
int_t | end | |||
) | [inline] |
Creates a new ColumnVector that reference a sub-vector of ColumnVector x starting from index start and ending at (but not including) index end.
colarray::ColumnVector< T >::ColumnVector | ( | const Matrix< T > & | A, | |
int_t | i | |||
) | [inline] |
Creates a ColumnVector from column i of matrix A
The newly created vector and the matrix column share the same memory.
colarray::ColumnVector< T >::ColumnVector | ( | T * | v, | |
int | n | |||
) | [inline] |
Creates a ColumnVector from an existing C array v of length n
The newly created ColumnVector shares the memory with array v. The reference counting mechanism is not used, so the caller is responsible of freeing the memory to which v points to.
T& colarray::ColumnVector< T >::operator() | ( | int_t | i | ) | [inline] |
const T& colarray::ColumnVector< T >::operator() | ( | int_t | i | ) | const [inline] |
T colarray::ColumnVector< T >::operator= | ( | const T | v | ) | [inline] |
T& colarray::ColumnVector< T >::operator[] | ( | int | i | ) | [inline] |
const T& colarray::ColumnVector< T >::operator[] | ( | int | i | ) | const [inline] |