summaryrefslogtreecommitdiff
path: root/include/phat/representations/Pivot_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/Pivot_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/Pivot_representation.h')
-rw-r--r--include/phat/representations/Pivot_representation.h6
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 ) {