Classes | Functions
core/vnl/vnl_vector_fixed.h File Reference

Fixed length stack-stored vector. More...

#include <vcl_cstring.h>
#include <vcl_cassert.h>
#include <vcl_iosfwd.h>
#include "vnl_vector.h"
#include "vnl_vector_ref.h"
#include <vnl/vnl_c_vector.h>
#include <vnl/vnl_matrix.h>
#include <vnl/vnl_config.h>

Go to the source code of this file.

Classes

class  vnl_vector_fixed< T, n >
 Fixed length stack-stored, space-efficient vector. More...

Functions

template<class T , unsigned int n>
vnl_vector_fixed< T, n > operator+ (const vnl_vector_fixed< T, n > &v, T s)
template<class T , unsigned int n>
vnl_vector_fixed< T, n > operator+ (const T &s, const vnl_vector_fixed< T, n > &v)
template<class T , unsigned int n>
vnl_vector_fixed< T, n > operator- (const vnl_vector_fixed< T, n > &v, T s)
template<class T , unsigned int n>
vnl_vector_fixed< T, n > operator- (const T &s, const vnl_vector_fixed< T, n > &v)
template<class T , unsigned int n>
vnl_vector_fixed< T, n > operator* (const vnl_vector_fixed< T, n > &v, T s)
template<class T , unsigned int n>
vnl_vector_fixed< T, n > operator* (const T &s, const vnl_vector_fixed< T, n > &v)
template<class T , unsigned int n>
vnl_vector_fixed< T, n > operator/ (const vnl_vector_fixed< T, n > &v, T s)
template<class T , unsigned int n>
vnl_vector_fixed< T, n > operator+ (const vnl_vector_fixed< T, n > &a, const vnl_vector_fixed< T, n > &b)
template<class T , unsigned int n>
vnl_vector< T > operator+ (const vnl_vector_fixed< T, n > &a, const vnl_vector< T > &b)
template<class T , unsigned int n>
vnl_vector< T > operator+ (const vnl_vector< T > &a, const vnl_vector_fixed< T, n > &b)
template<class T , unsigned int n>
vnl_vector_fixed< T, n > operator- (const vnl_vector_fixed< T, n > &a, const vnl_vector_fixed< T, n > &b)
template<class T , unsigned int n>
vnl_vector< T > operator- (const vnl_vector_fixed< T, n > &a, const vnl_vector< T > &b)
template<class T , unsigned int n>
vnl_vector< T > operator- (const vnl_vector< T > &a, const vnl_vector_fixed< T, n > &b)
template<class T , unsigned int n>
vnl_vector_fixed< T, n > element_product (const vnl_vector_fixed< T, n > &a, const vnl_vector_fixed< T, n > &b)
template<class T , unsigned int n>
vnl_vector< T > element_product (const vnl_vector_fixed< T, n > &a, const vnl_vector< T > &b)
template<class T , unsigned int n>
vnl_vector< T > element_product (const vnl_vector< T > &a, const vnl_vector_fixed< T, n > &b)
template<class T , unsigned int n>
vnl_vector_fixed< T, n > element_quotient (const vnl_vector_fixed< T, n > &a, const vnl_vector_fixed< T, n > &b)
template<class T , unsigned int n>
vnl_vector< T > element_quotient (const vnl_vector_fixed< T, n > &a, const vnl_vector< T > &b)
template<class T , unsigned int n>
vnl_vector< T > element_quotient (const vnl_vector< T > &a, const vnl_vector_fixed< T, n > &b)
template<class T , unsigned n>
dot_product (const vnl_vector_fixed< T, n > &a, const vnl_vector_fixed< T, n > &b)
template<class T , unsigned n>
dot_product (const vnl_vector_fixed< T, n > &a, const vnl_vector< T > &b)
template<class T , unsigned n>
dot_product (const vnl_vector< T > &a, const vnl_vector_fixed< T, n > &b)
template<class T , unsigned int n>
vnl_matrix< T > outer_product (const vnl_vector< T > &a, const vnl_vector_fixed< T, n > &b)
template<class T , unsigned int n>
vnl_matrix< T > outer_product (const vnl_vector_fixed< T, n > &a, const vnl_vector< T > &b)
template<class T , unsigned n>
angle (const vnl_vector_fixed< T, n > &a, const vnl_vector_fixed< T, n > &b)
template<class T , unsigned n>
angle (const vnl_vector_fixed< T, n > &a, const vnl_vector< T > &b)
template<class T , unsigned n>
angle (const vnl_vector< T > &a, const vnl_vector_fixed< T, n > &b)
template<class T , unsigned n>
vnl_vector_ssd (const vnl_vector_fixed< T, n > &a, const vnl_vector_fixed< T, n > &b)
template<class T , unsigned n>
vnl_vector_ssd (const vnl_vector_fixed< T, n > &a, const vnl_vector< T > &b)
template<class T , unsigned n>
vnl_vector_ssd (const vnl_vector< T > &a, const vnl_vector_fixed< T, n > &b)
template<class T , unsigned int n>
bool operator== (const vnl_vector_fixed< T, n > &a, const vnl_vector_fixed< T, n > &b)
template<class T , unsigned int n>
bool operator== (vnl_vector_fixed< T, n > const &a, vnl_vector< T > const &b)
template<class T , unsigned int n>
bool operator== (vnl_vector< T > const &a, vnl_vector_fixed< T, n > const &b)
template<class T , unsigned int n>
bool operator!= (const vnl_vector_fixed< T, n > &a, const vnl_vector_fixed< T, n > &b)
template<class T , unsigned int n>
bool operator!= (vnl_vector_fixed< T, n > const &a, vnl_vector< T > const &b)
template<class T , unsigned int n>
bool operator!= (vnl_vector< T > const &a, vnl_vector_fixed< T, n > const &b)
template<class T , unsigned int n>
vcl_ostream & operator<< (vcl_ostream &ostr, const vnl_vector_fixed< T, n > &v)
template<class T , unsigned int n>
vcl_istream & operator>> (vcl_istream &ostr, vnl_vector_fixed< T, n > &v)

Detailed Description

Fixed length stack-stored vector.

The operators are inlined because (1) they are small and (2) we then have less explicit instantiation trouble.

Author:
Andrew W. Fitzgibbon, Oxford RRG
Date:
04 Aug 96
    Modifications
     LSB Manchester 16/3/01 Binary I/O added
     Feb.2002 - Peter Vanroose - brief doxygen comment placed on single line
     Oct.2002 - Amitha Perera - decoupled vnl_vector and vnl_vector_fixed for
                space efficiency, removed necessity for vnl_vector_fixed_ref
     Jun.2003 - Paul Smyth - added as_fixed_ref() to convert to fixed-size ref
                removed duplicate cross_3d
     Jun.2003 - Peter Vanroose - added cross_2d
     Oct.2003 - Peter Vanroose - removed deprecated x(), y(), z(), t()
     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_fixed.h.


Function Documentation

template<class T , unsigned n>
T angle ( const vnl_vector_fixed< T, n > &  a,
const vnl_vector_fixed< T, n > &  b 
) [inline]

Definition at line 762 of file vnl_vector_fixed.h.

template<class T , unsigned n>
T angle ( const vnl_vector_fixed< T, n > &  a,
const vnl_vector< T > &  b 
) [inline]

Definition at line 771 of file vnl_vector_fixed.h.

template<class T , unsigned n>
T angle ( const vnl_vector< T > &  a,
const vnl_vector_fixed< T, n > &  b 
) [inline]

Definition at line 780 of file vnl_vector_fixed.h.

template<class T , unsigned n>
T dot_product ( const vnl_vector_fixed< T, n > &  a,
const vnl_vector_fixed< T, n > &  b 
) [inline]

Definition at line 718 of file vnl_vector_fixed.h.

template<class T , unsigned n>
T dot_product ( const vnl_vector_fixed< T, n > &  a,
const vnl_vector< T > &  b 
) [inline]

Definition at line 727 of file vnl_vector_fixed.h.

template<class T , unsigned n>
T dot_product ( const vnl_vector< T > &  a,
const vnl_vector_fixed< T, n > &  b 
) [inline]

Definition at line 736 of file vnl_vector_fixed.h.

template<class T , unsigned int n>
vnl_vector_fixed< T, n > element_product ( const vnl_vector_fixed< T, n > &  a,
const vnl_vector_fixed< T, n > &  b 
) [inline]

Definition at line 650 of file vnl_vector_fixed.h.

template<class T , unsigned int n>
vnl_vector< T > element_product ( const vnl_vector_fixed< T, n > &  a,
const vnl_vector< T > &  b 
) [inline]

Definition at line 661 of file vnl_vector_fixed.h.

template<class T , unsigned int n>
vnl_vector< T > element_product ( const vnl_vector< T > &  a,
const vnl_vector_fixed< T, n > &  b 
) [inline]

Definition at line 673 of file vnl_vector_fixed.h.

template<class T , unsigned int n>
vnl_vector_fixed< T, n > element_quotient ( const vnl_vector_fixed< T, n > &  a,
const vnl_vector_fixed< T, n > &  b 
) [inline]

Definition at line 684 of file vnl_vector_fixed.h.

template<class T , unsigned int n>
vnl_vector< T > element_quotient ( const vnl_vector_fixed< T, n > &  a,
const vnl_vector< T > &  b 
) [inline]

Definition at line 695 of file vnl_vector_fixed.h.

template<class T , unsigned int n>
vnl_vector< T > element_quotient ( const vnl_vector< T > &  a,
const vnl_vector_fixed< T, n > &  b 
) [inline]

Definition at line 707 of file vnl_vector_fixed.h.

template<class T , unsigned int n>
bool operator!= ( const vnl_vector_fixed< T, n > &  a,
const vnl_vector_fixed< T, n > &  b 
) [inline]

Definition at line 842 of file vnl_vector_fixed.h.

template<class T , unsigned int n>
bool operator!= ( vnl_vector_fixed< T, n > const &  a,
vnl_vector< T > const &  b 
) [inline]

Definition at line 851 of file vnl_vector_fixed.h.

template<class T , unsigned int n>
bool operator!= ( vnl_vector< T > const &  a,
vnl_vector_fixed< T, n > const &  b 
) [inline]

Definition at line 860 of file vnl_vector_fixed.h.

template<class T , unsigned int n>
vnl_vector_fixed< T, n > operator* ( const vnl_vector_fixed< T, n > &  v,
s 
) [inline]

Definition at line 556 of file vnl_vector_fixed.h.

template<class T , unsigned int n>
vnl_vector_fixed< T, n > operator* ( const T &  s,
const vnl_vector_fixed< T, n > &  v 
) [inline]

Definition at line 566 of file vnl_vector_fixed.h.

template<class T , unsigned int n>
vnl_vector_fixed< T, n > operator+ ( const vnl_vector_fixed< T, n > &  v,
s 
) [inline]

Definition at line 514 of file vnl_vector_fixed.h.

template<class T , unsigned int n>
vnl_vector_fixed< T, n > operator+ ( const T &  s,
const vnl_vector_fixed< T, n > &  v 
) [inline]

Definition at line 524 of file vnl_vector_fixed.h.

template<class T , unsigned int n>
vnl_vector_fixed< T, n > operator+ ( const vnl_vector_fixed< T, n > &  a,
const vnl_vector_fixed< T, n > &  b 
) [inline]

Definition at line 594 of file vnl_vector_fixed.h.

template<class T , unsigned int n>
vnl_vector< T > operator+ ( const vnl_vector_fixed< T, n > &  a,
const vnl_vector< T > &  b 
) [inline]

Definition at line 605 of file vnl_vector_fixed.h.

template<class T , unsigned int n>
vnl_vector< T > operator+ ( const vnl_vector< T > &  a,
const vnl_vector_fixed< T, n > &  b 
) [inline]

Definition at line 614 of file vnl_vector_fixed.h.

template<class T , unsigned int n>
vnl_vector_fixed< T, n > operator- ( const vnl_vector_fixed< T, n > &  v,
s 
) [inline]

Definition at line 535 of file vnl_vector_fixed.h.

template<class T , unsigned int n>
vnl_vector_fixed< T, n > operator- ( const T &  s,
const vnl_vector_fixed< T, n > &  v 
) [inline]

Definition at line 545 of file vnl_vector_fixed.h.

template<class T , unsigned int n>
vnl_vector_fixed< T, n > operator- ( const vnl_vector_fixed< T, n > &  a,
const vnl_vector_fixed< T, n > &  b 
) [inline]

Definition at line 622 of file vnl_vector_fixed.h.

template<class T , unsigned int n>
vnl_vector< T > operator- ( const vnl_vector_fixed< T, n > &  a,
const vnl_vector< T > &  b 
) [inline]

Definition at line 633 of file vnl_vector_fixed.h.

template<class T , unsigned int n>
vnl_vector< T > operator- ( const vnl_vector< T > &  a,
const vnl_vector_fixed< T, n > &  b 
) [inline]

Definition at line 642 of file vnl_vector_fixed.h.

template<class T , unsigned int n>
vnl_vector_fixed< T, n > operator/ ( const vnl_vector_fixed< T, n > &  v,
s 
) [inline]

Definition at line 577 of file vnl_vector_fixed.h.

template<class T , unsigned int n>
vcl_ostream & operator<< ( vcl_ostream &  ostr,
const vnl_vector_fixed< T, n > &  v 
) [inline]

Definition at line 873 of file vnl_vector_fixed.h.

template<class T , unsigned int n>
bool operator== ( const vnl_vector_fixed< T, n > &  a,
const vnl_vector_fixed< T, n > &  b 
) [inline]

Definition at line 816 of file vnl_vector_fixed.h.

template<class T , unsigned int n>
bool operator== ( vnl_vector_fixed< T, n > const &  a,
vnl_vector< T > const &  b 
) [inline]

Definition at line 825 of file vnl_vector_fixed.h.

template<class T , unsigned int n>
bool operator== ( vnl_vector< T > const &  a,
vnl_vector_fixed< T, n > const &  b 
) [inline]

Definition at line 834 of file vnl_vector_fixed.h.

template<class T , unsigned int n>
vcl_istream & operator>> ( vcl_istream &  ostr,
vnl_vector_fixed< T, n > &  v 
) [inline]

Definition at line 883 of file vnl_vector_fixed.h.

template<class T , unsigned int n>
vnl_matrix< T > outer_product ( const vnl_vector< T > &  a,
const vnl_vector_fixed< T, n > &  b 
) [inline]

Definition at line 745 of file vnl_vector_fixed.h.

template<class T , unsigned int n>
vnl_matrix< T > outer_product ( const vnl_vector_fixed< T, n > &  a,
const vnl_vector< T > &  b 
) [inline]

Definition at line 754 of file vnl_vector_fixed.h.

template<class T , unsigned n>
T vnl_vector_ssd ( const vnl_vector_fixed< T, n > &  a,
const vnl_vector_fixed< T, n > &  b 
) [inline]

Definition at line 789 of file vnl_vector_fixed.h.

template<class T , unsigned n>
T vnl_vector_ssd ( const vnl_vector_fixed< T, n > &  a,
const vnl_vector< T > &  b 
) [inline]

Definition at line 798 of file vnl_vector_fixed.h.

template<class T , unsigned n>
T vnl_vector_ssd ( const vnl_vector< T > &  a,
const vnl_vector_fixed< T, n > &  b 
) [inline]

Definition at line 807 of file vnl_vector_fixed.h.