Skip to content

Commit 3c615dd

Browse files
committed
Print NNZ in bsp-ls
1 parent e6f09cc commit 3c615dd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/bsp-ls.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ void print_group_info(hid_t g, const char* name) {
5858
char full_group_path[2048];
5959
size_t size = H5Iget_name(g, full_group_path, 2048);
6060

61-
printf("Group \"%s\": Version %s Binsparse matrix. Format %s, %zu x %zu.\n",
62-
full_group_path, version_string, format_string, nrows, ncols);
61+
printf("Group \"%s\": Version %s Binsparse matrix. Format %s, %zu x %zu. "
62+
"%zu stored values.\n",
63+
full_group_path, version_string, format_string, nrows, ncols, nnz);
6364

6465
cJSON* data_types =
6566
cJSON_GetObjectItemCaseSensitive(binsparse, "data_types");

0 commit comments

Comments
 (0)