colarray::ColumnVector< T > Class Template Reference

#include <vector.h>

Inheritance diagram for colarray::ColumnVector< T >:

Inheritance graph
[legend]
Collaboration diagram for colarray::ColumnVector< T >:

Collaboration graph
[legend]
List of all members.

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)
operator= (const T v)

Detailed Description

template<typename T>
class colarray::ColumnVector< T >

Stride-1 vector

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.


Constructor & Destructor Documentation

template<typename T>
colarray::ColumnVector< T >::ColumnVector (  )  [inline]

Creates an empty Column vector

Definition at line 124 of file vector.h.

template<typename T>
colarray::ColumnVector< T >::ColumnVector ( int_t  n  )  [inline]

Creates a new stride-1 vector of length n

Definition at line 128 of file vector.h.

template<typename T>
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.

Definition at line 134 of file vector.h.

template<typename T>
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.

Definition at line 141 of file vector.h.

template<typename T>
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.

Definition at line 150 of file vector.h.


Member Function Documentation

template<typename T>
T& colarray::ColumnVector< T >::operator() ( int_t  i  )  [inline]

Reimplemented from colarray::Vector< T >.

Definition at line 156 of file vector.h.

template<typename T>
const T& colarray::ColumnVector< T >::operator() ( int_t  i  )  const [inline]

Reimplemented from colarray::Vector< T >.

Definition at line 154 of file vector.h.

template<typename T>
T colarray::ColumnVector< T >::operator= ( const T  v  )  [inline]

Reimplemented from colarray::Vector< T >.

Definition at line 164 of file vector.h.

template<typename T>
T& colarray::ColumnVector< T >::operator[] ( int  i  )  [inline]

Reimplemented from colarray::Vector< T >.

Definition at line 160 of file vector.h.

template<typename T>
const T& colarray::ColumnVector< T >::operator[] ( int  i  )  const [inline]

Reimplemented from colarray::Vector< T >.

Definition at line 158 of file vector.h.


The documentation for this class was generated from the following file:
Generated on Fri Oct 26 13:35:17 2007 for FEMAXX (Finite Element Maxwell Eigensolver) by  doxygen 1.4.7