Macros | Functions
vnl_c_vector.hxx File Reference
#include <cmath>
#include <new>
#include "vnl_c_vector.h"
#include <cassert>
#include <vnl/vnl_math.h>
#include <vnl/vnl_complex_traits.h>
#include <vnl/vnl_numeric_traits.h>
#include <vnl/vnl_sse.h>

Go to the source code of this file.

Macros

#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 (std::size_t n, unsigned size)
 
void vnl_c_vector_dealloc (void *v, std::size_t n, unsigned size)
 
template<class T >
void vnl_c_vector_construct (T *p, std::size_t n)
 
void vnl_c_vector_construct (float *, std::size_t)
 
void vnl_c_vector_construct (double *, std::size_t)
 
void vnl_c_vector_construct (long double *, std::size_t)
 
void vnl_c_vector_construct (std::complex< float > *, std::size_t)
 
void vnl_c_vector_construct (std::complex< double > *, std::size_t)
 
void vnl_c_vector_construct (std::complex< long double > *, std::size_t)
 
template<class T >
void vnl_c_vector_destruct (T *p, std::size_t n)
 
void vnl_c_vector_destruct (float *, std::size_t)
 
void vnl_c_vector_destruct (double *, std::size_t)
 
void vnl_c_vector_destruct (long double *, std::size_t)
 
void vnl_c_vector_destruct (std::complex< float > *, std::size_t)
 
void vnl_c_vector_destruct (std::complex< double > *, std::size_t)
 
void vnl_c_vector_destruct (std::complex< long double > *, std::size_t)
 
template<class T >
std::ostream & print_vector (std::ostream &s, T const *v, unsigned size)
 Input & output. More...
 

Detailed Description

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

Definition in file vnl_c_vector.hxx.

Macro Definition Documentation

◆ VNL_C_VECTOR_INSTANTIATE_norm

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

Definition at line 428 of file vnl_c_vector.hxx.

◆ VNL_C_VECTOR_INSTANTIATE_ordered

#define VNL_C_VECTOR_INSTANTIATE_ordered (   T)
Value:
template class vnl_c_vector<T >; \
template VNL_EXPORT std::ostream& print_vector(std::ostream &,T const *,unsigned)
VNL_EXPORT std::ostream & print_vector(std::ostream &, T const *, unsigned)
Input & output.
vnl_c_vector interfaces to lowlevel memory-block operations.
Definition: vnl_c_vector.h:39
vnl_numeric_traits< T >::abs_t abs_t
Definition: vnl_c_vector.h:42
#define VNL_C_VECTOR_INSTANTIATE_norm(T, S)

Definition at line 436 of file vnl_c_vector.hxx.

◆ VNL_C_VECTOR_INSTANTIATE_unordered

#define VNL_C_VECTOR_INSTANTIATE_unordered (   T)
Value:
template <> T vnl_c_vector<T >::max_value(T const *, unsigned) { return T(0); } \
template <> T vnl_c_vector<T >::min_value(T const *, unsigned) { return T(0); } \
template <> unsigned vnl_c_vector<T >::arg_max(T const *, unsigned) { return 0U; } \
template <> unsigned vnl_c_vector<T >::arg_min(T const *, unsigned) { return 0U; } \
template class vnl_c_vector<T >; \
VNL_C_VECTOR_INSTANTIATE_norm(T, vnl_c_vector<T >::abs_t);
static unsigned arg_min(T const *, unsigned)
Returns location of min value of the vector.
vnl_c_vector interfaces to lowlevel memory-block operations.
Definition: vnl_c_vector.h:39
static unsigned arg_max(T const *, unsigned)
Returns location of max value of the vector.
static T min_value(T const *, unsigned)
Returns min value of the vector.
vnl_numeric_traits< T >::abs_t abs_t
Definition: vnl_c_vector.h:42
static T max_value(T const *, unsigned)
Returns max value of the vector.

Definition at line 442 of file vnl_c_vector.hxx.

Function Documentation

◆ print_vector()

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

Input & output.

Definition at line 418 of file vnl_c_vector.hxx.

◆ vnl_c_vector_alloc()

void* vnl_c_vector_alloc ( std::size_t  n,
unsigned  size 
)
inline

Definition at line 349 of file vnl_c_vector.hxx.

◆ vnl_c_vector_construct() [1/7]

template<class T >
void vnl_c_vector_construct ( T *  p,
std::size_t  n 
)
inline

Definition at line 376 of file vnl_c_vector.hxx.

◆ vnl_c_vector_construct() [2/7]

void vnl_c_vector_construct ( float *  ,
std::size_t   
)
inline

Definition at line 382 of file vnl_c_vector.hxx.

◆ vnl_c_vector_construct() [3/7]

void vnl_c_vector_construct ( double *  ,
std::size_t   
)
inline

Definition at line 383 of file vnl_c_vector.hxx.

◆ vnl_c_vector_construct() [4/7]

void vnl_c_vector_construct ( long double *  ,
std::size_t   
)
inline

Definition at line 384 of file vnl_c_vector.hxx.

◆ vnl_c_vector_construct() [5/7]

void vnl_c_vector_construct ( std::complex< float > *  ,
std::size_t   
)
inline

Definition at line 385 of file vnl_c_vector.hxx.

◆ vnl_c_vector_construct() [6/7]

void vnl_c_vector_construct ( std::complex< double > *  ,
std::size_t   
)
inline

Definition at line 386 of file vnl_c_vector.hxx.

◆ vnl_c_vector_construct() [7/7]

void vnl_c_vector_construct ( std::complex< long double > *  ,
std::size_t   
)
inline

Definition at line 387 of file vnl_c_vector.hxx.

◆ vnl_c_vector_dealloc()

void vnl_c_vector_dealloc ( void *  v,
std::size_t  n,
unsigned  size 
)
inline

Definition at line 355 of file vnl_c_vector.hxx.

◆ vnl_c_vector_destruct() [1/7]

template<class T >
void vnl_c_vector_destruct ( T *  p,
std::size_t  n 
)
inline

Definition at line 389 of file vnl_c_vector.hxx.

◆ vnl_c_vector_destruct() [2/7]

void vnl_c_vector_destruct ( float *  ,
std::size_t   
)
inline

Definition at line 395 of file vnl_c_vector.hxx.

◆ vnl_c_vector_destruct() [3/7]

void vnl_c_vector_destruct ( double *  ,
std::size_t   
)
inline

Definition at line 396 of file vnl_c_vector.hxx.

◆ vnl_c_vector_destruct() [4/7]

void vnl_c_vector_destruct ( long double *  ,
std::size_t   
)
inline

Definition at line 397 of file vnl_c_vector.hxx.

◆ vnl_c_vector_destruct() [5/7]

void vnl_c_vector_destruct ( std::complex< float > *  ,
std::size_t   
)
inline

Definition at line 398 of file vnl_c_vector.hxx.

◆ vnl_c_vector_destruct() [6/7]

void vnl_c_vector_destruct ( std::complex< double > *  ,
std::size_t   
)
inline

Definition at line 399 of file vnl_c_vector.hxx.

◆ vnl_c_vector_destruct() [7/7]

void vnl_c_vector_destruct ( std::complex< long double > *  ,
std::size_t   
)
inline

Definition at line 400 of file vnl_c_vector.hxx.

◆ vnl_c_vector_inf_norm()

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

Definition at line 334 of file vnl_c_vector.hxx.

◆ vnl_c_vector_one_norm()

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

Definition at line 317 of file vnl_c_vector.hxx.

◆ vnl_c_vector_rms_norm()

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

Definition at line 308 of file vnl_c_vector.hxx.

◆ vnl_c_vector_two_norm()

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

Definition at line 326 of file vnl_c_vector.hxx.

◆ vnl_c_vector_two_norm_squared()

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

Definition at line 296 of file vnl_c_vector.hxx.