Classes | Defines | Functions
core/vnl/vnl_vector.h File Reference
#include <vcl_iosfwd.h>
#include <vnl/vnl_tag.h>
#include <vnl/vnl_c_vector.h>
#include <vnl/vnl_config.h>
#include <vnl/vnl_error.h>

Go to the source code of this file.

Classes

class  vnl_vector< T >
 Mathematical vector class, templated by type of element. More...

Defines

#define v   vnl_vector<T>
#define m   vnl_matrix<T>

Functions

template<class T >
dot_product (v const &, v const &)
template<class T >
inner_product (v const &, v const &)
template<class T >
bracket (v const &, m const &, v const &)
template<class T >
cos_angle (v const &, v const &)
template<class T >
double angle (v const &, v const &)
template<class T >
outer_product (v const &, v const &)
template<class T >
operator+ (T, v const &)
template<class T >
operator- (T, v const &)
template<class T >
operator* (T, v const &)
template<class T >
operator* (v const &, m const &)
template<class T >
element_product (v const &, v const &)
template<class T >
element_quotient (v const &, v const &)
template<class T >
vnl_vector_ssd (v const &, v const &)
template<class T >
void swap (v &, v &)
template<class T >
vnl_vector< T > operator* (vnl_matrix< T > const &m, vnl_vector< T > const &v)
 multiply matrix and (column) vector. O(m*n).
template<class T >
vnl_vector< T > operator+ (T s, vnl_vector< T > const &v)
 add scalar and vector. O(n).
template<class T >
vnl_vector< T > operator- (T s, vnl_vector< T > const &v)
 subtract vector from scalar. O(n).
template<class T >
vnl_vector< T > operator* (T s, vnl_vector< T > const &v)
 multiply scalar and vector. O(n).
template<class T >
void swap (vnl_vector< T > &a, vnl_vector< T > &b)
 Interchange the two vectors.
template<class T >
vnl_vector_ssd (vnl_vector< T > const &v1, vnl_vector< T > const &v2)
 Euclidean Distance between two vectors.
template<class T >
export vcl_ostream & operator<< (vcl_ostream &, vnl_vector< T > const &)
 Write vector to a vcl_ostream.
template<class T >
export vcl_istream & operator>> (vcl_istream &, vnl_vector< T > &)
 Read vector from a vcl_istream.

Detailed Description

Author:
Andrew W. Fitzgibbon
   Modifications
   Comments re-written by Tim Cootes, for his sins.
     Feb.2002 - Peter Vanroose - brief doxygen comment placed on single line
     Mar.2004 - Peter Vanroose - deprecated fixed-size constructors now compile only when VNL_CONFIG_LEGACY_METHODS==1
     Mar.2009 - Peter Vanroose - added arg_min() and arg_max()
     Oct.2010 - Peter Vanroose - mutators and setters now return *this
   

Definition in file vnl_vector.h.


Define Documentation

#define m   vnl_matrix<T>

Definition at line 44 of file vnl_vector.h.

#define v   vnl_vector<T>

Definition at line 43 of file vnl_vector.h.


Function Documentation

template<class T >
double angle ( v const &  ,
v const &   
)
template<class T >
T bracket ( v const &  ,
m const &  ,
v const &   
)
template<class T >
T cos_angle ( v const &  ,
v const &   
)
template<class T >
T dot_product ( v const &  ,
v const &   
)
template<class T >
v element_product ( v const &  ,
v const &   
)
template<class T >
v element_quotient ( v const &  ,
v const &   
)
template<class T >
T inner_product ( v const &  ,
v const &   
)
template<class T >
v operator* ( ,
v const &   
)
template<class T >
v operator* ( v const &  ,
m const &   
)
template<class T >
vnl_vector< T > operator* ( vnl_matrix< T > const &  m,
vnl_vector< T > const &  v 
) [inline]

multiply matrix and (column) vector. O(m*n).

Definition at line 494 of file vnl_vector.h.

template<class T >
vnl_vector< T > operator* ( s,
vnl_vector< T > const &  v 
) [inline]

multiply scalar and vector. O(n).

Definition at line 518 of file vnl_vector.h.

template<class T >
v operator+ ( ,
v const &   
)
template<class T >
vnl_vector< T > operator+ ( s,
vnl_vector< T > const &  v 
) [inline]

add scalar and vector. O(n).

Definition at line 502 of file vnl_vector.h.

template<class T >
v operator- ( ,
v const &   
)
template<class T >
vnl_vector< T > operator- ( s,
vnl_vector< T > const &  v 
) [inline]

subtract vector from scalar. O(n).

Definition at line 510 of file vnl_vector.h.

template<class T >
export vcl_ostream & operator<< ( vcl_ostream &  s,
vnl_vector< T > const &  v 
)

Write vector to a vcl_ostream.

Definition at line 848 of file vnl_vector.txx.

template<class T >
export vcl_istream & operator>> ( vcl_istream &  s,
vnl_vector< T > &  M 
)

Read vector from a vcl_istream.

Read vector from a vcl_istream.

If the vector has nonzero size on input, read that many values. Otherwise, read to EOF.

Definition at line 860 of file vnl_vector.txx.

template<class T >
m outer_product ( v const &  ,
v const &   
)
template<class T >
void swap ( v &  ,
v &   
)
template<class T >
void swap ( vnl_vector< T > &  a,
vnl_vector< T > &  b 
) [inline]

Interchange the two vectors.

Definition at line 526 of file vnl_vector.h.

template<class T >
T vnl_vector_ssd ( v const &  ,
v const &   
)
template<class T >
T vnl_vector_ssd ( vnl_vector< T > const &  v1,
vnl_vector< T > const &  v2 
) [inline]

Euclidean Distance between two vectors.

Sum of Differences squared.

Definition at line 532 of file vnl_vector.h.