diff options
author | Michael Kerber <mkerber@fgeompc15.tugraz.local> | 2020-08-24 14:16:18 +0200 |
---|---|---|
committer | Michael Kerber <mkerber@fgeompc15.tugraz.local> | 2020-08-24 14:16:18 +0200 |
commit | 0fbd1f5197e69aee959d3eab134c2792f56fface (patch) | |
tree | ed2357570675140ad618635a1fb7478860e04ce9 /include/phat/representations/Pivot_representation.h | |
parent | 843e6870e58decba7d22411e4ba0f6dfc2df78a7 (diff) |
New method "set_dimension" to control the number of rows in the matrix, if needed
Diffstat (limited to 'include/phat/representations/Pivot_representation.h')
-rw-r--r-- | include/phat/representations/Pivot_representation.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/phat/representations/Pivot_representation.h b/include/phat/representations/Pivot_representation.h index 324c888..77f8746 100644 --- a/include/phat/representations/Pivot_representation.h +++ b/include/phat/representations/Pivot_representation.h @@ -71,13 +71,13 @@ template<typename BaseRepresentation, typename PivotColumn> public: - void _set_num_cols( index nr_of_cols ) { + void _set_dimensions( index nr_of_rows, index nr_of_cols ) { #pragma omp parallel for for( int tid = 0; tid < omp_get_num_threads(); tid++ ) { - pivot_cols[ tid ].init( nr_of_cols ); + pivot_cols[ tid ].init( nr_of_rows ); idx_of_pivot_cols[ tid ] = -1; } - Base::_set_num_cols( nr_of_cols ); + Base::_set_dimensions( nr_of_rows, nr_of_cols ); } void _add_to( index source, index target ) { |