summaryrefslogtreecommitdiff
path: root/include/phat/representations/Uniform_representation.h
diff options
context:
space:
mode:
authorMichael Kerber <mkerber@fgeompc15.tugraz.local>2020-08-24 14:16:18 +0200
committerMichael Kerber <mkerber@fgeompc15.tugraz.local>2020-08-24 14:16:18 +0200
commit0fbd1f5197e69aee959d3eab134c2792f56fface (patch)
treeed2357570675140ad618635a1fb7478860e04ce9 /include/phat/representations/Uniform_representation.h
parent843e6870e58decba7d22411e4ba0f6dfc2df78a7 (diff)
New method "set_dimension" to control the number of rows in the matrix, if needed
Diffstat (limited to 'include/phat/representations/Uniform_representation.h')
-rw-r--r--include/phat/representations/Uniform_representation.h3
1 files changed, 2 insertions, 1 deletions
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);