Skip to content

Commit

Permalink
update service.cpp
Browse files Browse the repository at this point in the history
Signed-off-by: minmingzhu <minming.zhu@intel.com>
  • Loading branch information
minmingzhu committed Jul 27, 2023
1 parent c904fc4 commit 870589d
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions mllib-dal/src/main/native/service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -410,21 +410,23 @@ void printNumericTable(NumericTable *dataTable, const char *message = "",
nPrintedRows, nCols, message, interval);
dataTable->releaseBlockOfRows(block);
} else {
try {
try {
PackedArrayNumericTableIface *packedTable =
dynamic_cast<PackedArrayNumericTableIface *>(dataTable);
packedTable->getPackedArray(readOnly, block);
if (isLower(layout)) {
printLowerArray<DAAL_DATA_TYPE>(block.getBlockPtr(), nPrintedRows,
message, interval);
printLowerArray<DAAL_DATA_TYPE>(
block.getBlockPtr(), nPrintedRows, message, interval);
} else if (isUpper(layout)) {
printUpperArray<DAAL_DATA_TYPE>(block.getBlockPtr(), nPrintedCols,
nPrintedRows, nCols, message,
interval);
printUpperArray<DAAL_DATA_TYPE>(block.getBlockPtr(),
nPrintedCols, nPrintedRows,
nCols, message, interval);
}
packedTable->releasePackedArray(block);
} catch (const std::bad_cast& e) {
std::cout << "Dynamic cast to PackedArrayNumericTableIface* failed: " << e.what() << std::endl;
} catch (const std::bad_cast &e) {
std::cout
<< "Dynamic cast to PackedArrayNumericTableIface* failed: "
<< e.what() << std::endl;
}
}
}
Expand Down

0 comments on commit 870589d

Please sign in to comment.