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
30 template int sign < NUM > (const NUM&);
31 //template double fabssqr < NUM > (const NUM&);
32 template NUM sqr < NUM > (const NUM&);
33 # if !defined(HAVE_WIN_32) && !defined (NO_NS) // Problems with other dot
34 template NUM dot < NUM > (const NUM&, const NUM&);
35 # endif
36 # define NUMP NUM
37 #else
38 typedef NUM _numptr;
39 # define NUMP _numptr
40 #endif
41 
42 # if !defined(C_MEMALLOC) && !defined(ALLOW_MEMCPY)
43 template void _tbci_copy < NUMP > (const unsigned long, NUMP * const, const NUMP * const);
44 # endif
45 template void _par_copy < NUMP > (const unsigned long, NUMP * const, const NUMP * const);
46 # if !defined(C_MEMALLOC) && !defined(ALLOW_MEMSET)
47 template void _tbci_fill < NUMP > (const unsigned long, NUMP * const, tbci_traits<NUMP>::loop_const_refval_type);
48 # endif
49 template void _par_fill < NUMP > (const unsigned long, NUMP * const, tbci_traits<NUMP>::loop_const_refval_type);
50 
51 template void _tbci_fill_fn < NUMP > (const unsigned long, NUMP * const, vec_fill_fn<T>, void*);
52 template void _par_fill_fn < NUMP > (const unsigned long, NUMP * const, vec_fill_fn<T>, void*);
53 
54 
55 template void SWAP < NUMP > (NUMP &, NUMP &);
56 #if !defined(C_MEMALLOC) && !defined(ALLOW_MEMCMP) && !defined(__GNUG__)
57 template int _tbci_comp < NUMP > (const unsigned long, const NUMP * const, const NUMP *const);
58 #endif
59 template void do_vv_comp < NUMP > (const unsigned long, const NUMP * const, const NUMP * const, volatile long&);
60 template int _par_comp < NUMP > (const unsigned long, const NUMP *const, const NUMP * const);
61 
62 template unsigned long bin_search <unsigned> (const unsigned*, unsigned, unsigned long, unsigned long);
63 template unsigned long _bin_search <unsigned> (const unsigned*, unsigned, unsigned long, unsigned long);
64 
#define NAMESPACE_TBCI
Definition: basics.h:317
#define NUM
Definition: bveclib.cc:9
template unsigned long _bin_search< unsigned >(const unsigned *, unsigned, unsigned long, unsigned long)
template unsigned long bin_search< unsigned >(const unsigned *, unsigned, unsigned long, unsigned long)
#define NUMP
Definition: bveclib.cc:36
#define NAMESPACE_END
Definition: basics.h:323