From 0fbd1f5197e69aee959d3eab134c2792f56fface Mon Sep 17 00:00:00 2001 From: Michael Kerber Date: Mon, 24 Aug 2020 14:16:18 +0200 Subject: New method "set_dimension" to control the number of rows in the matrix, if needed --- include/phat/representations/Uniform_representation.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/phat/representations/Uniform_representation.h') diff --git a/include/phat/representations/Uniform_representation.h b/include/phat/representations/Uniform_representation.h index ccbf6a3..b31e275 100644 --- a/include/phat/representations/Uniform_representation.h +++ b/include/phat/representations/Uniform_representation.h @@ -54,9 +54,10 @@ class Uniform_representation { return col_traits.get_size(matrix); } - void _set_num_cols(index nr_of_columns) { + void _set_dimensions(index nr_of_rows, index nr_of_columns) { col_traits.resize(matrix, nr_of_columns); for(index idx = 0;idx < nr_of_columns;idx++) { + col_traits.col_at(matrix,idx)._set_nr_of_rows(nr_of_rows); col_traits.col_at(matrix,idx).offer_thread_local_storage(&temp_column_buffer); } dim_traits.resize(dims, nr_of_columns); -- cgit v1.2.3