DD-AVX  2.0.0
vector_minus.cpp
Go to the documentation of this file.
1 #include<DD-AVX_internal.hpp>
2 using namespace ddavx_core;
3 
5  registers regs;
6  #pragma omp parallel private(regs)
7  {
8  int i=0, is=0, ie=0;
9  get_isie(size(), is, ie);
10 
11  for(i = is; i < (ie-SIMD_Length+1); i += SIMD_Length){
12  to_minus(hi.data()[i], regs);
13  to_minus(lo.data()[i], regs);
14  }
15  for(;i<ie;i++){
16  hi[i] = -1 * hi[i];
17  lo[i] = -1 * lo[i];
18  }
19  }
20 }
21 
23  registers regs;
24  #pragma omp parallel private(regs)
25  {
26  int i=0, is=0, ie=0;
27  get_isie(size(), is, ie);
28 
29  for(i = is; i < (ie-SIMD_Length+1); i += SIMD_Length){
30  to_minus(data()[i], regs);
31  }
32  for(;i<ie;i++){
33  data()[i] = -1 * data()[i];
34  }
35  }
36 }
37 
39 {
40  minus();
41  return *this;
42 }
43 
45 {
46  minus();
47  return *this;
48 }
Double precision vector class, This class is almost same as std::vector<double>
void minus()
sign
d_real_vector operator-()
sign
Double-double precision vector class.
dd_real_vector operator-()
sign
void minus()
sign
Definition: vector_minus.cpp:4