MCPcopy Create free account
hub / github.com/BoevaLab/FREEC / cmatrixcopy

Function cmatrixcopy

src/ablas.cpp:368–383  ·  view source on GitHub ↗

Copy Input parameters: M - number of rows N - number of columns A - source matrix, MxN submatrix is copied and transposed IA - submatrix offset (row index) JA - submatrix offset (column index) B - destination matrix IB - submatrix offset (row index) JB - submatrix offset (column index) ****************************************************

Source from the content-addressed store, hash-verified

366 JB - submatrix offset (column index)
367*************************************************************************/
368void cmatrixcopy(int m,
369 int n,
370 const ap::complex_2d_array& a,
371 int ia,
372 int ja,
373 ap::complex_2d_array& b,
374 int ib,
375 int jb)
376{
377 int i;
378
379 for(i = 0; i <= m-1; i++)
380 {
381 ap::vmove(&b(ib+i, jb), 1, &a(ia+i, ja), 1, "N", ap::vlen(jb,jb+n-1));
382 }
383}
384
385
386/*************************************************************************

Callers 4

cmatrixqrFunction · 0.85
cmatrixlqFunction · 0.85
cmatrixqrunpackqFunction · 0.85
cmatrixlqunpackqFunction · 0.85

Calls 1

vmoveFunction · 0.85

Tested by

no test coverage detected