#include "vnl_copy.h"
#include <vcl_cassert.h>
#include <vcl_complex.h>
#include <vnl/vnl_vector.h>
#include <vnl/vnl_matrix.h>
#include <vnl/vnl_diag_matrix.h>
Go to the source code of this file.
Defines |
#define | VNL_COPY_INSTANTIATE0(S, T) template void vnl_copy(S const *, T *, unsigned ) |
#define | vnl_copy_macro(S, D) |
#define | vnl_copy_dumb(S) |
#define | VNL_COPY_INSTANTIATE(S, T) |
#define | VNL_COPY_INSTANTIATE_twoway(S, T) |
Functions |
template<class S , class T > |
void | vnl_copy (S const *src, T *dst, unsigned n) |
| Easy conversion between vectors and matrices templated over different types.
|
template<class S , class T > |
void | vnl_copy (S const &src, T &dst) |
| Easy conversion between vectors and matrices templated over different types.
|
| VNL_COPY_INSTANTIATE0 (float, double) |
| VNL_COPY_INSTANTIATE0 (double, float) |
| VNL_COPY_INSTANTIATE0 (double, long double) |
| VNL_COPY_INSTANTIATE0 (long double, double) |
| vnl_copy_macro (float, double) |
| vnl_copy_macro (double, float) |
| vnl_copy_macro (double, long double) |
| vnl_copy_macro (long double, double) |
| vnl_copy_dumb (float) |
| vnl_copy_dumb (double) |
| VNL_COPY_INSTANTIATE (float, float) |
| VNL_COPY_INSTANTIATE (double, double) |
| VNL_COPY_INSTANTIATE_twoway (float, double) |
| VNL_COPY_INSTANTIATE_twoway (vcl_complex< float >, vcl_complex< double >) |
| VNL_COPY_INSTANTIATE_twoway (double, long double) |
| VNL_COPY_INSTANTIATE_twoway (vcl_complex< double >, vcl_complex< long double >) |
Detailed Description
- Author:
- fsm
Definition in file vnl_copy.cxx.
Define Documentation
#define vnl_copy_dumb |
( |
|
S | ) |
|
Value:VCL_DEFINE_SPECIALIZATION \
void vnl_copy(S const *src, S *dst, unsigned n) \
{ \
for (unsigned int i=0; i<n; ++i) \
dst[i] = src[i]; \
}
Definition at line 59 of file vnl_copy.cxx.
#define VNL_COPY_INSTANTIATE |
( |
|
S, |
|
|
|
T |
|
) |
| |
#define VNL_COPY_INSTANTIATE0 |
( |
|
S, |
|
|
|
T |
|
) |
| template void vnl_copy(S const *, T *, unsigned ) |
#define VNL_COPY_INSTANTIATE_twoway |
( |
|
S, |
|
|
|
T |
|
) |
| |
#define vnl_copy_macro |
( |
|
S, |
|
|
|
D |
|
) |
| |
Value:VCL_DEFINE_SPECIALIZATION \
void vnl_copy(vcl_complex<S> const *src, vcl_complex<D> *dst, unsigned n) \
{ \
for (unsigned int i=0; i<n; ++i) \
dst[i] = vcl_complex<D>((D)vcl_real(src[i]), (D)vcl_imag(src[i])); \
}
Definition at line 45 of file vnl_copy.cxx.
Function Documentation
template<class S , class T >
void vnl_copy |
( |
S const * |
src, |
|
|
T * |
dst, |
|
|
unsigned |
n |
|
) |
| |
Easy conversion between vectors and matrices templated over different types.
Definition at line 19 of file vnl_copy.cxx.
template<class S , class T >
void vnl_copy |
( |
S const & |
src, |
|
|
T & |
dst |
|
) |
| |
Easy conversion between vectors and matrices templated over different types.
Definition at line 26 of file vnl_copy.cxx.
VNL_COPY_INSTANTIATE |
( |
float |
, |
|
|
float |
|
|
) |
| |
VNL_COPY_INSTANTIATE |
( |
double |
, |
|
|
double |
|
|
) |
| |
VNL_COPY_INSTANTIATE0 |
( |
float |
, |
|
|
double |
|
|
) |
| |
VNL_COPY_INSTANTIATE0 |
( |
double |
, |
|
|
float |
|
|
) |
| |
VNL_COPY_INSTANTIATE0 |
( |
double |
, |
|
|
long |
double |
|
) |
| |
VNL_COPY_INSTANTIATE0 |
( |
long |
double, |
|
|
double |
|
|
) |
| |
VNL_COPY_INSTANTIATE_twoway |
( |
float |
, |
|
|
double |
|
|
) |
| |
VNL_COPY_INSTANTIATE_twoway |
( |
vcl_complex< float > |
, |
|
|
vcl_complex< double > |
|
|
) |
| |
VNL_COPY_INSTANTIATE_twoway |
( |
double |
, |
|
|
long |
double |
|
) |
| |
VNL_COPY_INSTANTIATE_twoway |
( |
vcl_complex< double > |
, |
|
|
vcl_complex< long double > |
|
|
) |
| |
vnl_copy_macro |
( |
float |
, |
|
|
double |
|
|
) |
| |
vnl_copy_macro |
( |
double |
, |
|
|
float |
|
|
) |
| |
vnl_copy_macro |
( |
double |
, |
|
|
long |
double |
|
) |
| |
vnl_copy_macro |
( |
long |
double, |
|
|
double |
|
|
) |
| |