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

vnl_c_vector< T > Class Template Reference

#include <vnl_c_vector.h>

List of all members.

Public Types

typedef vnl_numeric_traits<
T >::abs_t 
abs_t

Static Public Methods

sum (const T *v, unsigned n)
abs_t squared_magnitude (T const *p, unsigned n)
void normalize (T *, unsigned n)
void apply (T const *, unsigned, T(*f)(T), T *v_out)
void apply (T const *, unsigned, T(*f)(const T &), T *v_out)
void copy (T const *x, T *y, unsigned)
void scale (T const *x, T *y, unsigned, T const &)
void add (T const *x, T const *y, T *z, unsigned)
void subtract (T const *x, T const *y, T *z, unsigned)
void multiply (T const *x, T const *y, T *z, unsigned)
void divide (T const *x, T const *y, T *z, unsigned)
void negate (T const *x, T *y, unsigned)
void invert (T const *x, T *y, unsigned)
void saxpy (T const &a, T const *x, T *y, unsigned)
void fill (T *x, unsigned, T const &v)
void reverse (T *x, unsigned)
dot_product (T const *, T const *, unsigned)
inner_product (T const *, T const *, unsigned)
void conjugate (T const *, T *, unsigned)
max_value (T const *, unsigned)
min_value (T const *, unsigned)
mean (T const *p, unsigned n)
abs_t one_norm (T const *p, unsigned n)
abs_t two_norm (T const *p, unsigned n)
abs_t inf_norm (T const *p, unsigned n)
abs_t two_nrm2 (T const *p, unsigned n)
abs_t rms_norm (T const *p, unsigned n)
T ** allocate_Tptr (int n)
T * allocate_T (int n)
void deallocate (T **, int n_when_allocated)
void deallocate (T *, int n_when_allocated)


Detailed Description

template<class T>
class vnl_c_vector< T >

vnl_c_vector interfaces to lowlevel memory-block operations.

Definition at line 31 of file vnl_c_vector.h.


Member Typedef Documentation

template<class T>
typedef vnl_numeric_traits<T>::abs_t vnl_c_vector< T >::abs_t
 

Definition at line 33 of file vnl_c_vector.h.


Member Function Documentation

template<class T>
void vnl_c_vector< T >::add T const *    x,
T const *    y,
T *    z,
unsigned   
[static]
 

z[i] = x[i] + y[i];.

template<class T>
T* vnl_c_vector< T >::allocate_T int    n [static]
 

template<class T>
T** vnl_c_vector< T >::allocate_Tptr int    n [static]
 

Memory allocation.

template<class T>
void vnl_c_vector< T >::apply T const *   ,
unsigned   ,
T(*    f)(const T &),
T *    v_out
[static]
 

template<class T>
void vnl_c_vector< T >::apply T const *   ,
unsigned   ,
T(*    f)(T),
T *    v_out
[static]
 

template<class T>
void vnl_c_vector< T >::conjugate T const *   ,
T *   ,
unsigned   
[static]
 

template<class T>
void vnl_c_vector< T >::copy T const *    x,
T *    y,
unsigned   
[static]
 

y[i] = x[i].

template<class T>
void vnl_c_vector< T >::deallocate T *   ,
int    n_when_allocated
[static]
 

template<class T>
void vnl_c_vector< T >::deallocate T **   ,
int    n_when_allocated
[static]
 

template<class T>
void vnl_c_vector< T >::divide T const *    x,
T const *    y,
T *    z,
unsigned   
[static]
 

z[i] = x[i] / y[i].

template<class T>
T vnl_c_vector< T >::dot_product T const *   ,
T const *   ,
unsigned   
[static]
 

template<class T>
void vnl_c_vector< T >::fill T *    x,
unsigned   ,
T const &    v
[static]
 

x[i] = v.

template<class T>
abs_t vnl_c_vector< T >::inf_norm T const *    p,
unsigned    n
[inline, static]
 

inf_norm : max of abs values.

Definition at line 109 of file vnl_c_vector.h.

template<class T>
T vnl_c_vector< T >::inner_product T const *   ,
T const *   ,
unsigned   
[static]
 

conjugate second.

template<class T>
void vnl_c_vector< T >::invert T const *    x,
T *    y,
unsigned   
[static]
 

y[i] = 1/x[i].

template<class T>
T vnl_c_vector< T >::max_value T const *   ,
unsigned   
[static]
 

template<class T>
T vnl_c_vector< T >::mean T const *    p,
unsigned    n
[inline, static]
 

Definition at line 94 of file vnl_c_vector.h.

References vnl_c_vector_inf_norm().

Referenced by vnl_vector< TVector >::begin().

template<class T>
T vnl_c_vector< T >::min_value T const *   ,
unsigned   
[static]
 

Referenced by vnl_vector< TVector >::end().

template<class T>
void vnl_c_vector< T >::multiply T const *    x,
T const *    y,
T *    z,
unsigned   
[static]
 

z[i] = x[i] * y[i].

template<class T>
void vnl_c_vector< T >::negate T const *    x,
T *    y,
unsigned   
[static]
 

y[i] = -x[i].

template<class T>
void vnl_c_vector< T >::normalize T *   ,
unsigned    n
[static]
 

Referenced by vnl_vector< TVector >::end().

template<class T>
abs_t vnl_c_vector< T >::one_norm T const *    p,
unsigned    n
[inline, static]
 

one_norm : sum of abs values.

Definition at line 99 of file vnl_c_vector.h.

References vnl_c_vector_rms_norm().

template<class T>
void vnl_c_vector< T >::reverse T *    x,
unsigned   
[static]
 

template<class T>
abs_t vnl_c_vector< T >::rms_norm T const *    p,
unsigned    n
[inline, static]
 

rms_norm : sqrt of mean sum of squared abs values.

Definition at line 119 of file vnl_c_vector.h.

Referenced by vnl_vector< TVector >::begin().

template<class T>
void vnl_c_vector< T >::saxpy T const &    a,
T const *    x,
T *    y,
unsigned   
[static]
 

y[i] += a*x[i].

template<class T>
void vnl_c_vector< T >::scale T const *    x,
T *    y,
unsigned   ,
T const &   
[static]
 

y[i] = a*x[i].

template<class T>
abs_t vnl_c_vector< T >::squared_magnitude T const *    p,
unsigned    n
[inline, static]
 

Definition at line 36 of file vnl_c_vector.h.

template<class T>
void vnl_c_vector< T >::subtract T const *    x,
T const *    y,
T *    z,
unsigned   
[static]
 

z[i] = x[i] - y[i].

template<class T>
T vnl_c_vector< T >::sum const T *    v,
unsigned    n
[static]
 

template<class T>
abs_t vnl_c_vector< T >::two_norm T const *    p,
unsigned    n
[inline, static]
 

two_norm : sqrt of sum of squared abs values.

Definition at line 104 of file vnl_c_vector.h.

template<class T>
abs_t vnl_c_vector< T >::two_nrm2 T const *    p,
unsigned    n
[inline, static]
 

two_nrm2 : sum of squared abs values.

Definition at line 114 of file vnl_c_vector.h.

Referenced by vnl_vector< TVector >::data_block().


The documentation for this class was generated from the following file:
Generated at Fri May 21 01:16:37 2004 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000