Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
minmingzhu committed Jul 30, 2024
1 parent 28b0488 commit eb494a3
Showing 1 changed file with 38 additions and 16 deletions.
54 changes: 38 additions & 16 deletions mllib-dal/src/main/native/service.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,31 +89,53 @@ inline void printHomegenTable(const oneapi::dal::table &table) {
// logger::println(logger::NONE, "");
// }
if (table.get_row_count() <= 10) {
for (std::int64_t i = 0; i < table.get_row_count(); i++) {
logger::print(logger::INFO, "");
for (std::int64_t j = 0; j < table.get_column_count(); j++) {
logger::print(logger::NONE, "%10f",
x[i * table.get_column_count() + j]);
for (std::int64_t i = 0; i < table.get_row_count(); i++) {
logger::print(logger::INFO, "");
if(table.get_column_count() <= 20) {
for (std::int64_t j = 0; j < table.get_column_count(); j++) {
logger::print(logger::NONE, "%10f",
x[i * table.get_column_count() + j]);
}
} else {
for (std::int64_t j = 0; j < 20; j++) {
logger::print(logger::NONE, "%10f",
x[i * table.get_column_count() + j]);
}
}
logger::println(logger::NONE, "");
}
logger::println(logger::NONE, "");
}

} else {
for (std::int64_t i = 0; i < 5; i++) {
logger::print(logger::INFO, "");
for (std::int64_t j = 0; j < table.get_column_count(); j++) {
logger::print(logger::NONE, "%10f",
x[i * table.get_column_count() + j]);
}
logger::println(logger::NONE, "");
logger::print(logger::INFO, "");
if(table.get_column_count() <= 20) {
for (std::int64_t j = 0; j < table.get_column_count(); j++) {
logger::print(logger::NONE, "%10f",
x[i * table.get_column_count() + j]);
}
} else {
for (std::int64_t j = 0; j < 20; j++) {
logger::print(logger::NONE, "%10f",
x[i * table.get_column_count() + j]);
}
}
logger::println(logger::NONE, "");
}
logger::println(logger::INFO, "...%ld lines skipped...",
(table.get_row_count() - 10));
for (std::int64_t i = table.get_row_count() - 5;
i < table.get_row_count(); i++) {
logger::print(logger::INFO, "");
for (std::int64_t j = 0; j < table.get_column_count(); j++) {
logger::print(logger::NONE, "%10f",
x[i * table.get_column_count() + j]);
if(table.get_column_count() <= 20) {
for (std::int64_t j = 0; j < table.get_column_count(); j++) {
logger::print(logger::NONE, "%10f",
x[i * table.get_column_count() + j]);
}
} else {
for (std::int64_t j = 0; j < 20; j++) {
logger::print(logger::NONE, "%10f",
x[i * table.get_column_count() + j]);
}
}
logger::println(logger::NONE, "");
}
Expand Down

0 comments on commit eb494a3

Please sign in to comment.