71 unsigned int NumUp =
baseUp.size();
72 unsigned int NumDown =
baseDown.size();
75 for(
unsigned int i=0;i<NumUp;i++)
82 for(
unsigned int i=0;i<NumDown;i++)
96 for(
unsigned int a=0;a<NumUp;a++)
100 for(
unsigned int b=Up_row[a];b<Up_row[a+1];b++)
113 else if(count > size_Up)
114 std::cerr <<
"Something went terribly wrong!" << std::endl;
117 for(
unsigned int a=0;a<NumDown;a++)
121 for(
unsigned int b=Down_row[a];b<Down_row[a+1];b++)
134 else if(count > size_Down)
135 std::cerr <<
"Something went terribly wrong!" << std::endl;
144 unsigned int NumUp =
baseUp.size();
145 unsigned int NumDown =
baseDown.size();
147 std::cout <<
"Up:" << std::endl;
149 for(
unsigned int i=0;i<NumUp;i++)
153 for(
unsigned int j=0;j<NumUp;j++)
155 std::cout <<
Up_data[i + NumUp*count++] <<
"\t";
159 std::cout << std::endl;
162 std::cout <<
"Down:" << std::endl;
164 for(
unsigned int i=0;i<NumDown;i++)
168 for(
unsigned int j=0;j<NumDown;j++)
170 std::cout <<
Down_data[i + NumDown*count++] <<
"\t";
174 std::cout << std::endl;
180 unsigned int NumUp =
baseUp.size();
181 unsigned int NumDown =
baseDown.size();
183 std::cout <<
"Up:" << std::endl;
185 std::cout <<
"Data:" << std::endl;
186 for(
unsigned int i=0;i<NumUp;i++)
189 std::cout <<
Up_data[i+j*NumUp] <<
"\t";
191 std::cout << std::endl;
194 std::cout <<
"Indices:" << std::endl;
195 for(
unsigned int i=0;i<NumUp;i++)
198 std::cout <<
Up_ind[i+j*NumUp] <<
"\t";
200 std::cout << std::endl;
203 std::cout <<
"Down:" << std::endl;
205 std::cout <<
"Data:" << std::endl;
206 for(
unsigned int i=0;i<NumDown;i++)
209 std::cout <<
Down_data[i+j*NumDown] <<
"\t";
211 std::cout << std::endl;
214 std::cout <<
"Indices:" << std::endl;
215 for(
unsigned int i=0;i<NumDown;i++)
218 std::cout <<
Down_ind[i+j*NumDown] <<
"\t";
220 std::cout << std::endl;
232 int NumUp =
baseUp.size();
237 for(
int i=0;i<NumUp;i++)
239 #pragma omp parallel for
240 for(
int k=0;k<NumDown;k++)
252 daxpy_(&NumDown,&
Up_data[i+l*NumUp],&x[
Up_ind[i+l*NumUp]*NumDown],&incx,&y[i*NumDown],&incx);