Defines | Functions
core/vnl/vnl_c_vector.txx File Reference
#include "vnl_c_vector.h"
#include <vcl_cmath.h>
#include <vcl_cassert.h>
#include <vnl/vnl_math.h>
#include <vnl/vnl_complex_traits.h>
#include <vnl/vnl_numeric_traits.h>
#include <vnl/vnl_sse.h>
#include <vcl_new.h>

Go to the source code of this file.

Defines

#define vnl_c_vector_txx_
#define VNL_C_VECTOR_INSTANTIATE_norm(T, S)
#define VNL_C_VECTOR_INSTANTIATE_ordered(T)
#define VNL_C_VECTOR_INSTANTIATE_unordered(T)

Functions

template<class T , class S >
void vnl_c_vector_two_norm_squared (T const *p, unsigned n, S *out)
template<class T , class S >
void vnl_c_vector_rms_norm (T const *p, unsigned n, S *out)
template<class T , class S >
void vnl_c_vector_one_norm (T const *p, unsigned n, S *out)
template<class T , class S >
void vnl_c_vector_two_norm (T const *p, unsigned n, S *out)
template<class T , class S >
void vnl_c_vector_inf_norm (T const *p, unsigned n, S *out)
void * vnl_c_vector_alloc (vcl_size_t n, unsigned size)
void vnl_c_vector_dealloc (void *v, vcl_size_t n, unsigned size)
template<class T >
void vnl_c_vector_construct (T *p, vcl_size_t n)
void vnl_c_vector_construct (float *, vcl_size_t)
void vnl_c_vector_construct (double *, vcl_size_t)
void vnl_c_vector_construct (long double *, vcl_size_t)
void vnl_c_vector_construct (vcl_complex< float > *, vcl_size_t)
void vnl_c_vector_construct (vcl_complex< double > *, vcl_size_t)
void vnl_c_vector_construct (vcl_complex< long double > *, vcl_size_t)
template<class T >
void vnl_c_vector_destruct (T *p, vcl_size_t n)
void vnl_c_vector_destruct (float *, vcl_size_t)
void vnl_c_vector_destruct (double *, vcl_size_t)
void vnl_c_vector_destruct (long double *, vcl_size_t)
void vnl_c_vector_destruct (vcl_complex< float > *, vcl_size_t)
void vnl_c_vector_destruct (vcl_complex< double > *, vcl_size_t)
void vnl_c_vector_destruct (vcl_complex< long double > *, vcl_size_t)
template<class T >
vcl_ostream & print_vector (vcl_ostream &s, T const *v, unsigned size)
 Input & output.

Detailed Description

Author:
Andrew W. Fitzgibbon, Oxford RRG
Date:
12 Feb 1998

Definition in file vnl_c_vector.txx.


Define Documentation

#define VNL_C_VECTOR_INSTANTIATE_norm (   T,
 
)
Value:
template void vnl_c_vector_two_norm_squared(T const *, unsigned, S *); \
template void vnl_c_vector_rms_norm(T const *, unsigned, S *); \
template void vnl_c_vector_one_norm(T const *, unsigned, S *); \
template void vnl_c_vector_two_norm(T const *, unsigned, S *); \
template void vnl_c_vector_inf_norm(T const *, unsigned, S *)

Definition at line 446 of file vnl_c_vector.txx.

#define VNL_C_VECTOR_INSTANTIATE_ordered (   T)
Value:
VNL_C_VECTOR_INSTANTIATE_norm(T, vnl_c_vector<T >::abs_t); \
template class vnl_c_vector<T >; \
template vcl_ostream& print_vector(vcl_ostream &,T const *,unsigned)

Definition at line 454 of file vnl_c_vector.txx.

#define VNL_C_VECTOR_INSTANTIATE_unordered (   T)
Value:
VCL_DO_NOT_INSTANTIATE(T vnl_c_vector<T >::max_value(T const *, unsigned), T(0)); \
VCL_DO_NOT_INSTANTIATE(T vnl_c_vector<T >::min_value(T const *, unsigned), T(0)); \
VCL_DO_NOT_INSTANTIATE(unsigned vnl_c_vector<T >::arg_max(T const *, unsigned), 0U); \
VCL_DO_NOT_INSTANTIATE(unsigned vnl_c_vector<T >::arg_min(T const *, unsigned), 0U); \
VNL_C_VECTOR_INSTANTIATE_norm(T, vnl_c_vector<T >::abs_t); \
template class vnl_c_vector<T >; \
VCL_UNINSTANTIATE_SPECIALIZATION(T vnl_c_vector<T >::max_value(T const *, unsigned)); \
VCL_UNINSTANTIATE_SPECIALIZATION(T vnl_c_vector<T >::min_value(T const *, unsigned)); \
VCL_UNINSTANTIATE_SPECIALIZATION(unsigned vnl_c_vector<T >::arg_max(T const *, unsigned)); \
VCL_UNINSTANTIATE_SPECIALIZATION(unsigned vnl_c_vector<T >::arg_min(T const *, unsigned))

Definition at line 460 of file vnl_c_vector.txx.

#define vnl_c_vector_txx_

Definition at line 3 of file vnl_c_vector.txx.


Function Documentation

template<class T >
vcl_ostream& print_vector ( vcl_ostream &  s,
T const *  v,
unsigned  size 
)

Input & output.

Definition at line 436 of file vnl_c_vector.txx.

void* vnl_c_vector_alloc ( vcl_size_t  n,
unsigned  size 
) [inline]

Definition at line 355 of file vnl_c_vector.txx.

template<class T >
void vnl_c_vector_construct ( T *  p,
vcl_size_t  n 
) [inline]

Definition at line 380 of file vnl_c_vector.txx.

void vnl_c_vector_construct ( float *  ,
vcl_size_t   
) [inline]

Definition at line 386 of file vnl_c_vector.txx.

void vnl_c_vector_construct ( double *  ,
vcl_size_t   
) [inline]

Definition at line 387 of file vnl_c_vector.txx.

void vnl_c_vector_construct ( long double *  ,
vcl_size_t   
) [inline]

Definition at line 388 of file vnl_c_vector.txx.

void vnl_c_vector_construct ( vcl_complex< float > *  ,
vcl_size_t   
) [inline]

Definition at line 389 of file vnl_c_vector.txx.

void vnl_c_vector_construct ( vcl_complex< double > *  ,
vcl_size_t   
) [inline]

Definition at line 390 of file vnl_c_vector.txx.

void vnl_c_vector_construct ( vcl_complex< long double > *  ,
vcl_size_t   
) [inline]

Definition at line 391 of file vnl_c_vector.txx.

void vnl_c_vector_dealloc ( void *  v,
vcl_size_t  n,
unsigned  size 
) [inline]

Definition at line 361 of file vnl_c_vector.txx.

template<class T >
void vnl_c_vector_destruct ( T *  p,
vcl_size_t  n 
) [inline]

Definition at line 402 of file vnl_c_vector.txx.

void vnl_c_vector_destruct ( float *  ,
vcl_size_t   
) [inline]

Definition at line 413 of file vnl_c_vector.txx.

void vnl_c_vector_destruct ( double *  ,
vcl_size_t   
) [inline]

Definition at line 414 of file vnl_c_vector.txx.

void vnl_c_vector_destruct ( long double *  ,
vcl_size_t   
) [inline]

Definition at line 415 of file vnl_c_vector.txx.

void vnl_c_vector_destruct ( vcl_complex< float > *  ,
vcl_size_t   
) [inline]

Definition at line 416 of file vnl_c_vector.txx.

void vnl_c_vector_destruct ( vcl_complex< double > *  ,
vcl_size_t   
) [inline]

Definition at line 417 of file vnl_c_vector.txx.

void vnl_c_vector_destruct ( vcl_complex< long double > *  ,
vcl_size_t   
) [inline]

Definition at line 418 of file vnl_c_vector.txx.

template<class T , class S >
void vnl_c_vector_inf_norm ( T const *  p,
unsigned  n,
S *  out 
)

Definition at line 340 of file vnl_c_vector.txx.

template<class T , class S >
void vnl_c_vector_one_norm ( T const *  p,
unsigned  n,
S *  out 
)

Definition at line 323 of file vnl_c_vector.txx.

template<class T , class S >
void vnl_c_vector_rms_norm ( T const *  p,
unsigned  n,
S *  out 
)

Definition at line 314 of file vnl_c_vector.txx.

template<class T , class S >
void vnl_c_vector_two_norm ( T const *  p,
unsigned  n,
S *  out 
)

Definition at line 332 of file vnl_c_vector.txx.

template<class T , class S >
void vnl_c_vector_two_norm_squared ( T const *  p,
unsigned  n,
S *  out 
)

Definition at line 295 of file vnl_c_vector.txx.