Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

vnl_vector_fixed< T, n > Class Template Reference

#include <vnl_vector_fixed.h>

Inheritance diagram for vnl_vector_fixed:

Inheritance graph
[legend]
Collaboration diagram for vnl_vector_fixed< T, n >:

Collaboration graph
[legend]
List of all members.

Public Methods

 vnl_vector_fixed ()
 vnl_vector_fixed (vnl_vector< T > const &rhs)
 vnl_vector_fixed (vnl_vector_fixed< T, n > const &rhs)
 vnl_vector_fixed (T const &v)
 vnl_vector_fixed (T const &px, T const &py, T const &pz)
 vnl_vector_fixed (T const &px, T const &py)
vnl_vector_fixed< T, n > & operator= (vnl_vector_fixed< T, n > const &rhs)
vnl_vector_fixed< T, n > & operator= (vnl_vector< T > const &rhs)
vnl_vector_fixed< T, n > & operator= (T const &t)
vnl_vector_fixed< T, n > & operator+= (T const t)
vnl_vector_fixed< T, n > & operator-= (T const t)
vnl_vector_fixed< T, n > & operator *= (T const t)
vnl_vector_fixed< T, n > & operator/= (T const t)
vnl_vector_fixed< T, n > & operator+= (vnl_vector< T > const &rhs)
vnl_vector_fixed< T, n > & operator-= (vnl_vector< T > const &rhs)
vnl_vector_fixed< T, n > operator- () const
vnl_vector_fixed< T, n > operator+ (T const t) const
vnl_vector_fixed< T, n > operator- (T const t) const
vnl_vector_fixed< T, n > operator * (T const t) const
vnl_vector_fixed< T, n > operator/ (T const t) const
vnl_vector_fixed< T, n > operator+ (vnl_vector< T > const &rhs) const
vnl_vector_fixed< T, n > operator- (vnl_vector< T > const &rhs) const
vnl_vector_fixed< T, n > apply (T(*f)(T))
vnl_vector_fixed< T, n > apply (T(*f)(T const &))
vnl_vector_fixed< T, n > & update (vnl_vector< T > const &v, unsigned int start=0)
vnl_vector_fixed< T, n > & normalize ()
vnl_vector< T > & pre_multiply (vnl_matrix< T > const &)
vnl_vector< T > & post_multiply (vnl_matrix< T > const &)
vnl_vector< T > & operator *= (vnl_matrix< T > const &)

Friends

vnl_vector_fixed< T, n > element_product VCL_NULL_TMPL_ARGS (vnl_vector_fixed< T, n > const &, vnl_vector_fixed< T, n > const &)
vnl_vector_fixed< T, n > element_quotient VCL_NULL_TMPL_ARGS (vnl_vector_fixed< T, n > const &, vnl_vector_fixed< T, n > const &)

Detailed Description

template<class T, int n>
class vnl_vector_fixed< T, n >

fixed length stack-stored vnl_vector.

Definition at line 42 of file vnl_vector_fixed.h.


Constructor & Destructor Documentation

template<class T, int n>
vnl_vector_fixed< T, n >::vnl_vector_fixed   [inline]
 

Construct an uninitialized n-vector.

Definition at line 47 of file vnl_vector_fixed.h.

template<class T, int n>
vnl_vector_fixed< T, n >::vnl_vector_fixed vnl_vector< T > const &    rhs [inline]
 

Construct an n-vector copy of rhs.\ Does not check that rhs. is the right size.

Definition at line 52 of file vnl_vector_fixed.h.

template<class T, int n>
vnl_vector_fixed< T, n >::vnl_vector_fixed vnl_vector_fixed< T, n > const &    rhs [inline]
 

GCC generates (and calls) this even though above should do...

Definition at line 61 of file vnl_vector_fixed.h.

template<class T, int n>
vnl_vector_fixed< T, n >::vnl_vector_fixed T const &    v [inline]
 

Constructs n-vector with elements initialised to v.

Definition at line 67 of file vnl_vector_fixed.h.

template<class T, int n>
vnl_vector_fixed< T, n >::vnl_vector_fixed T const &    px,
T const &    py,
T const &    pz
[inline]
 

Constructs 3D vector(px, py, pz ).

Definition at line 74 of file vnl_vector_fixed.h.

template<class T, int n>
vnl_vector_fixed< T, n >::vnl_vector_fixed T const &    px,
T const &    py
[inline]
 

Constructs 2D vector (px, py).

Definition at line 83 of file vnl_vector_fixed.h.


Member Function Documentation

template<class T, int n>
vnl_vector_fixed<T,n> vnl_vector_fixed< T, n >::apply T(*    f)(T const &) [inline]
 

Definition at line 138 of file vnl_vector_fixed.h.

template<class T, int n>
vnl_vector_fixed<T,n> vnl_vector_fixed< T, n >::apply T(*    f)(T) [inline]
 

Definition at line 133 of file vnl_vector_fixed.h.

template<class T, int n>
vnl_vector_fixed<T,n>& vnl_vector_fixed< T, n >::normalize   [inline]
 

v /= sqrt(dot(v,v)).

Reimplemented from vnl_vector< T >.

Definition at line 155 of file vnl_vector_fixed.h.

template<class T, int n>
vnl_vector_fixed<T,n> vnl_vector_fixed< T, n >::operator * T const    t const [inline]
 

Reimplemented from vnl_vector< T >.

Definition at line 123 of file vnl_vector_fixed.h.

template<class T, int n>
vnl_vector<T>& vnl_vector_fixed< T, n >::operator *= vnl_matrix< T > const &   
 

*this = (*this)*M where M is a suitable matrix. this is treated as a row vector

Reimplemented from vnl_vector< T >.

template<class T, int n>
vnl_vector_fixed<T,n>& vnl_vector_fixed< T, n >::operator *= T const    t [inline]
 

Multiply all elements by scalar.

Reimplemented from vnl_vector< T >.

Definition at line 107 of file vnl_vector_fixed.h.

template<class T, int n>
vnl_vector_fixed<T,n> vnl_vector_fixed< T, n >::operator+ vnl_vector< T > const &    rhs const [inline]
 

Reimplemented from vnl_vector< T >.

Definition at line 128 of file vnl_vector_fixed.h.

template<class T, int n>
vnl_vector_fixed<T,n> vnl_vector_fixed< T, n >::operator+ T const    t const [inline]
 

Reimplemented from vnl_vector< T >.

Definition at line 119 of file vnl_vector_fixed.h.

template<class T, int n>
vnl_vector_fixed<T,n>& vnl_vector_fixed< T, n >::operator+= vnl_vector< T > const &    rhs [inline]
 

Add rhs to this and return *this.

Reimplemented from vnl_vector< T >.

Definition at line 112 of file vnl_vector_fixed.h.

template<class T, int n>
vnl_vector_fixed<T,n>& vnl_vector_fixed< T, n >::operator+= T const    t [inline]
 

Add scalar value to all elements.

Reimplemented from vnl_vector< T >.

Definition at line 103 of file vnl_vector_fixed.h.

template<class T, int n>
vnl_vector_fixed<T,n> vnl_vector_fixed< T, n >::operator- vnl_vector< T > const &    rhs const [inline]
 

Reimplemented from vnl_vector< T >.

Definition at line 130 of file vnl_vector_fixed.h.

template<class T, int n>
vnl_vector_fixed<T,n> vnl_vector_fixed< T, n >::operator- T const    t const [inline]
 

Reimplemented from vnl_vector< T >.

Definition at line 121 of file vnl_vector_fixed.h.

template<class T, int n>
vnl_vector_fixed<T,n> vnl_vector_fixed< T, n >::operator-   const [inline]
 

Unary mnus operator. Return new vector = -1*(*this)

Reimplemented from vnl_vector< T >.

Definition at line 117 of file vnl_vector_fixed.h.

template<class T, int n>
vnl_vector_fixed<T,n>& vnl_vector_fixed< T, n >::operator-= vnl_vector< T > const &    rhs [inline]
 

Subtract rhs from this and return *this.

Reimplemented from vnl_vector< T >.

Definition at line 114 of file vnl_vector_fixed.h.

template<class T, int n>
vnl_vector_fixed<T,n>& vnl_vector_fixed< T, n >::operator-= T const    t [inline]
 

Subtract scalar value from all elements.

Reimplemented from vnl_vector< T >.

Definition at line 105 of file vnl_vector_fixed.h.

template<class T, int n>
vnl_vector_fixed<T,n> vnl_vector_fixed< T, n >::operator/ T const    t const [inline]
 

Reimplemented from vnl_vector< T >.

Definition at line 125 of file vnl_vector_fixed.h.

template<class T, int n>
vnl_vector_fixed<T,n>& vnl_vector_fixed< T, n >::operator/= T const    t [inline]
 

Divide all elements by scalar.

Reimplemented from vnl_vector< T >.

Definition at line 109 of file vnl_vector_fixed.h.

template<class T, int n>
vnl_vector_fixed<T,n>& vnl_vector_fixed< T, n >::operator= T const &    t [inline]
 

Set all elements to value v.

Reimplemented from vnl_vector< T >.

Definition at line 101 of file vnl_vector_fixed.h.

template<class T, int n>
vnl_vector_fixed<T,n>& vnl_vector_fixed< T, n >::operator= vnl_vector< T > const &    rhs [inline]
 

Copy operator.

Reimplemented from vnl_vector< T >.

Definition at line 94 of file vnl_vector_fixed.h.

template<class T, int n>
vnl_vector_fixed<T,n>& vnl_vector_fixed< T, n >::operator= vnl_vector_fixed< T, n > const &    rhs [inline]
 

Definition at line 89 of file vnl_vector_fixed.h.

template<class T, int n>
vnl_vector<T>& vnl_vector_fixed< T, n >::post_multiply vnl_matrix< T > const &   
 

v = v * m.

Reimplemented from vnl_vector< T >.

template<class T, int n>
vnl_vector<T>& vnl_vector_fixed< T, n >::pre_multiply vnl_matrix< T > const &   
 

v = m * v.

Reimplemented from vnl_vector< T >.

template<class T, int n>
vnl_vector_fixed<T,n>& vnl_vector_fixed< T, n >::update vnl_vector< T > const &    v,
unsigned int    start = 0
[inline]
 

Replaces elements with index begining at start, by values of v.\ O(n).

Reimplemented from vnl_vector< T >.

Definition at line 150 of file vnl_vector_fixed.h.


Friends And Related Function Documentation

template<class T, int n>
vnl_vector_fixed<T,n> element_quotient VCL_NULL_TMPL_ARGS vnl_vector_fixed< T, n > const &   ,
vnl_vector_fixed< T, n > const &   
[friend]
 

template<class T, int n>
vnl_vector_fixed<T,n> element_product VCL_NULL_TMPL_ARGS vnl_vector_fixed< T, n > const &   ,
vnl_vector_fixed< T, n > const &   
[friend]
 


The documentation for this class was generated from the following file:
Generated at Wed Mar 12 01:13:43 2003 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000