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

Method matrixSize

src/library/tools/ktest/step.cpp:448–472  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

446}
447
448std::string
449Step::matrixSize(MatrixVariable *matrix)
450{
451 std::stringstream size;
452
453 if ((matrix->rows() == NULL) || (matrix->columns() == NULL)) {
454 return "";
455 }
456
457 if (matrix->off() != NULL) {
458 size << matrix->off()->name() << " + ";
459 }
460
461 if (matrix->ld() != NULL) {
462 size << matrix->ld()->name() << " * ";
463 }
464
465 if (step_.args.order == clblasColumnMajor) {
466 size << matrix->columns()->name();
467 }
468 else {
469 size << matrix->rows()->name();
470 }
471 return size.str();
472}
473
474std::string
475Step::vectorSize(VectorVariable *vector)

Callers 2

generateMainMethod · 0.80
getBufferSizeExprMethod · 0.80

Calls 4

rowsMethod · 0.80
columnsMethod · 0.80
ldMethod · 0.80
offMethod · 0.45

Tested by 2

generateMainMethod · 0.64
getBufferSizeExprMethod · 0.64