@@ -25,7 +25,7 @@ void write_dense_vector(H5::Group& f, std::span<T> v,
25
25
j[" binsparse" ][" version" ] = version;
26
26
j[" binsparse" ][" format" ] = " DVEC" ;
27
27
j[" binsparse" ][" shape" ] = {v.size ()};
28
- j[" binsparse" ][" nnz " ] = v.size ();
28
+ j[" binsparse" ][" number_of_stored_values " ] = v.size ();
29
29
j[" binsparse" ][" data_types" ][" values" ] = type_info<T>::label ();
30
30
31
31
for (auto && v : user_keys.items ()) {
@@ -51,7 +51,7 @@ auto read_dense_vector(std::string fname, Allocator&& alloc = Allocator{}) {
51
51
assert (format == " DVEC" );
52
52
53
53
auto nvalues = binsparse_metadata[" shape" ][0 ];
54
- auto nnz = binsparse_metadata[" nnz " ];
54
+ auto nnz = binsparse_metadata[" number_of_stored_values " ];
55
55
56
56
assert (nvalues == nnz);
57
57
@@ -76,7 +76,7 @@ void write_dense_matrix(H5::Group& f, dense_matrix<T, I, Order> m,
76
76
j[" binsparse" ][" version" ] = version;
77
77
j[" binsparse" ][" format" ] = __detail::get_matrix_format_string (m);
78
78
j[" binsparse" ][" shape" ] = {m.m , m.n };
79
- j[" binsparse" ][" nnz " ] = m.m * m.n ;
79
+ j[" binsparse" ][" number_of_stored_values " ] = m.m * m.n ;
80
80
j[" binsparse" ][" data_types" ][" values" ] = type_info<T>::label ();
81
81
82
82
if (m.structure != general) {
@@ -118,7 +118,7 @@ auto read_dense_matrix(std::string fname, Allocator&& alloc = Allocator{}) {
118
118
119
119
auto nrows = binsparse_metadata[" shape" ][0 ];
120
120
auto ncols = binsparse_metadata[" shape" ][1 ];
121
- auto nnz = binsparse_metadata[" nnz " ];
121
+ auto nnz = binsparse_metadata[" number_of_stored_values " ];
122
122
123
123
auto values = hdf5_tools::read_dataset<T>(f, " values" , alloc);
124
124
@@ -149,7 +149,7 @@ void write_csr_matrix(H5::Group& f, csr_matrix<T, I> m,
149
149
j[" binsparse" ][" version" ] = version;
150
150
j[" binsparse" ][" format" ] = " CSR" ;
151
151
j[" binsparse" ][" shape" ] = {m.m , m.n };
152
- j[" binsparse" ][" nnz " ] = m.nnz ;
152
+ j[" binsparse" ][" number_of_stored_values " ] = m.nnz ;
153
153
j[" binsparse" ][" data_types" ][" pointers_to_1" ] = type_info<I>::label ();
154
154
j[" binsparse" ][" data_types" ][" indices_1" ] = type_info<I>::label ();
155
155
j[" binsparse" ][" data_types" ][" values" ] = type_info<T>::label ();
@@ -189,7 +189,7 @@ csr_matrix<T, I> read_csr_matrix(std::string fname, Allocator&& alloc) {
189
189
190
190
auto nrows = binsparse_metadata[" shape" ][0 ];
191
191
auto ncols = binsparse_metadata[" shape" ][1 ];
192
- auto nnz = binsparse_metadata[" nnz " ];
192
+ auto nnz = binsparse_metadata[" number_of_stored_values " ];
193
193
194
194
typename std::allocator_traits<
195
195
std::remove_cvref_t <Allocator>>::template rebind_alloc<I>
@@ -232,7 +232,7 @@ void write_csc_matrix(H5::Group& f, csc_matrix<T, I> m,
232
232
j[" binsparse" ][" version" ] = version;
233
233
j[" binsparse" ][" format" ] = " CSR" ;
234
234
j[" binsparse" ][" shape" ] = {m.m , m.n };
235
- j[" binsparse" ][" nnz " ] = m.nnz ;
235
+ j[" binsparse" ][" number_of_stored_values " ] = m.nnz ;
236
236
j[" binsparse" ][" data_types" ][" pointers_to_1" ] = type_info<I>::label ();
237
237
j[" binsparse" ][" data_types" ][" indices_1" ] = type_info<I>::label ();
238
238
j[" binsparse" ][" data_types" ][" values" ] = type_info<T>::label ();
@@ -272,7 +272,7 @@ csc_matrix<T, I> read_csc_matrix(std::string fname, Allocator&& alloc) {
272
272
273
273
auto nrows = binsparse_metadata[" shape" ][0 ];
274
274
auto ncols = binsparse_metadata[" shape" ][1 ];
275
- auto nnz = binsparse_metadata[" nnz " ];
275
+ auto nnz = binsparse_metadata[" number_of_stored_values " ];
276
276
277
277
typename std::allocator_traits<
278
278
std::remove_cvref_t <Allocator>>::template rebind_alloc<I>
@@ -315,7 +315,7 @@ void write_coo_matrix(H5::Group& f, coo_matrix<T, I> m,
315
315
j[" binsparse" ][" version" ] = version;
316
316
j[" binsparse" ][" format" ] = " COO" ;
317
317
j[" binsparse" ][" shape" ] = {m.m , m.n };
318
- j[" binsparse" ][" nnz " ] = m.nnz ;
318
+ j[" binsparse" ][" number_of_stored_values " ] = m.nnz ;
319
319
j[" binsparse" ][" data_types" ][" indices_0" ] = type_info<I>::label ();
320
320
j[" binsparse" ][" data_types" ][" indices_1" ] = type_info<I>::label ();
321
321
j[" binsparse" ][" data_types" ][" values" ] = type_info<T>::label ();
@@ -357,7 +357,7 @@ coo_matrix<T, I> read_coo_matrix(std::string fname, Allocator&& alloc) {
357
357
358
358
auto nrows = binsparse_metadata[" shape" ][0 ];
359
359
auto ncols = binsparse_metadata[" shape" ][1 ];
360
- auto nnz = binsparse_metadata[" nnz " ];
360
+ auto nnz = binsparse_metadata[" number_of_stored_values " ];
361
361
362
362
typename std::allocator_traits<
363
363
std::remove_cvref_t <Allocator>>::template rebind_alloc<I>
0 commit comments