MCPcopy Create free account
hub / github.com/clMathLibraries/clBLAS / copyData

Method copyData

src/tests/functional/func.h:215–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213 }
214}
215template <typename T> void
216baseMetod<T>::copyData(baseMetod<T> & source)
217{
218 if (source.A != NULL) {
219 //A = new TYPE[size * size];
220 memcpy(A, source.A, size * size * sizeof(TYPE));
221 }
222 if (source.B != NULL) {
223 //B = new TYPE[size * size];
224 memcpy(B, source.B, size * size * sizeof(TYPE));
225 }
226 if (source.C != NULL) {
227 //C = new TYPE[size * size];
228 memcpy(C, source.C, size * size * sizeof(TYPE));
229 }
230
231 if (source.AP != NULL) {
232 //A = new TYPE[size * size];
233 memcpy(AP, source.AP, ((size * (size+1)) /2 )* sizeof(TYPE));
234 }
235 if (source.X != NULL) {
236 //A = new TYPE[size * size];
237 memcpy(X, source.X, size * sizeof(TYPE));
238 }
239 if (source.Y != NULL) {
240 //A = new TYPE[size * size];
241 memcpy(Y, source.Y, size * sizeof(TYPE));
242 }
243
244 alpha = source.alpha;
245 beta = source.beta;
246}
247
248template <typename T> void
249baseMetod<T>::initDefault(size_t s, unsigned int q, USE_BUFFER ub)

Callers 1

initMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected