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

Function printMatrixBlock

src/tests/include/matrix.h:242–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240
241template <typename T>
242static void
243printMatrixBlock(
244 clblasOrder order,
245 size_t startRow,
246 size_t startCol,
247 size_t nrRows,
248 size_t nrCols,
249 size_t lda,
250 T *A)
251{
252 // FIXME : Packed Matrix
253 size_t i, j;
254 T a;
255
256 for (i = 0; i < nrRows; i++) {
257 for (j = 0; j < nrCols; j++) {
258 a = getElement(order, clblasNoTrans, startRow + i,
259 startCol + j, A, lda);
260 printElement<T>(a);
261 }
262 std::cout << std::endl;
263 }
264 std::cout << std::endl << std::endl;
265}
266
267template <typename T>
268static void

Callers

nothing calls this directly

Calls 1

getElementFunction · 0.85

Tested by

no test coverage detected