-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnlowlevel.sub.h
More file actions
50 lines (43 loc) · 726 Bytes
/
nlowlevel.sub.h
File metadata and controls
50 lines (43 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/* defines nlowlevel::sub functions
NOT validated
requires:
//<ipp.h>
//<mkl.h>
//have called init_intel()
*/
#pragma once
namespace nlowlevel {
void sub ( // a
double *dest
,const int len
,const double *a
,const double *b
) {
//vdSub(len, a, b, dest);
for (int i = 0; i < len; ++i) {
dest[i] = a[i] - b[i];
}
}
void sub ( // s
double *dest
,const int len
,const double *a
,const double b
) {
//ippsSubC_64f(a, b, dest, len);
for (int i = 0; i < len; ++i) {
dest[i] = a[i] - b;
}
}
void sub ( // s
double *dest
,const int len
,const double a
,const double *b
) {
//ippsSubCRev_64f(b, a, dest, len);
for (int i = 0; i < len; ++i) {
dest[i] = a - b[i];
}
}
}