TBCI Numerical high perf. C++ Library 2.8.0
bveclib.cc
Go to the documentation of this file.
1
6/* $Id: bveclib.cc,v 1.5.2.20 2019/05/28 11:13:02 garloff Exp $ */
7
8#ifndef NUM
9# define NUM double
10#endif
11
12#ifdef PRAGMA_I
13# pragma implementation "bvector.h"
14#endif
15#include "tbci/bvector.h"
16
17// explicit instantiation of all those things ...
18//NAMESPACE_TBCI
19
20#define T NUM
21#define U NUM
22#include "bvector_inst.h"
23
24//NAMESPACE_END
25
26// We need to explicitly instatiate this helper function templates from basics ?
27
29#ifndef PTR
30template int sign < NUM > (const NUM&);
31//template double fabssqr < NUM > (const NUM&);
32template NUM sqr < NUM > (const NUM&);
33# if !defined(HAVE_WIN_32) && !defined (NO_NS) // Problems with other dot
34template NUM dot < NUM > (const NUM&, const NUM&);
35# endif
36# define NUMP NUM
37#else
38typedef NUM _numptr;
39# define NUMP _numptr
40#endif
41
42# if !defined(C_MEMALLOC) && !defined(ALLOW_MEMCPY)
43template void _tbci_copy < NUMP > (const unsigned long, NUMP * const, const NUMP * const);
44# endif
45template void _par_copy < NUMP > (const unsigned long, NUMP * const, const NUMP * const);
46# if !defined(C_MEMALLOC) && !defined(ALLOW_MEMSET)
47template void _tbci_fill < NUMP > (const unsigned long, NUMP * const, tbci_traits<NUMP>::loop_const_refval_type);
48# endif
49template void _par_fill < NUMP > (const unsigned long, NUMP * const, tbci_traits<NUMP>::loop_const_refval_type);
50
51template void _tbci_fill_fn < NUMP > (const unsigned long, NUMP * const, vec_fill_fn<T>, void*);
52template void _par_fill_fn < NUMP > (const unsigned long, NUMP * const, vec_fill_fn<T>, void*);
53
54
55template void SWAP < NUMP > (NUMP &, NUMP &);
56#if !defined(C_MEMALLOC) && !defined(ALLOW_MEMCMP) && !defined(__GNUG__)
57template int _tbci_comp < NUMP > (const unsigned long, const NUMP * const, const NUMP *const);
58#endif
59template void do_vv_comp < NUMP > (const unsigned long, const NUMP * const, const NUMP * const, volatile long&);
60template int _par_comp < NUMP > (const unsigned long, const NUMP *const, const NUMP * const);
61
62template unsigned long bin_search <unsigned> (const unsigned*, unsigned, unsigned long, unsigned long);
63template unsigned long _bin_search <unsigned> (const unsigned*, unsigned, unsigned long, unsigned long);
64
#define NAMESPACE_END
Definition basics.h:323
#define NAMESPACE_TBCI
Definition basics.h:317
#define NUM
Definition bdmatlib.cc:9
template unsigned long _bin_search< unsigned >(const unsigned *, unsigned, unsigned long, unsigned long)
#define NUMP
Definition bveclib.cc:36
template unsigned long bin_search< unsigned >(const unsigned *, unsigned, unsigned long, unsigned long)
cplx< T > dot(const cplx< T > &a, const cplx< T > &b)
Definition cplx.h:300
cplx< T > sqr(const cplx< T > &c)
Definition cplx.h:449