summaryrefslogtreecommitdiff
path: root/include/phat/representations/abstract_pivot_column.h
diff options
context:
space:
mode:
authorjan.reininghaus <jan.reininghaus@8e3bb3c2-eed4-f18f-5264-0b6c94e6926d>2013-05-14 13:40:15 +0000
committerjan.reininghaus <jan.reininghaus@8e3bb3c2-eed4-f18f-5264-0b6c94e6926d>2013-05-14 13:40:15 +0000
commit772d0888efe11e12c6849e44bdda5c0cf58d39ee (patch)
tree6ea357a7bc11d14c0cf047cd46ee1f24fb0147c2 /include/phat/representations/abstract_pivot_column.h
parent595ce965ef6e07c554a91ebb8b41c8e1c06b8b32 (diff)
code cleanup
git-svn-id: https://phat.googlecode.com/svn/trunk@86 8e3bb3c2-eed4-f18f-5264-0b6c94e6926d
Diffstat (limited to 'include/phat/representations/abstract_pivot_column.h')
-rw-r--r--include/phat/representations/abstract_pivot_column.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/phat/representations/abstract_pivot_column.h b/include/phat/representations/abstract_pivot_column.h
index f441537..fbee368 100644
--- a/include/phat/representations/abstract_pivot_column.h
+++ b/include/phat/representations/abstract_pivot_column.h
@@ -47,8 +47,10 @@ namespace phat {
void release_pivot_col() {
index idx = idx_of_pivot_cols();
- if( idx != -1 )
+ if( idx != -1 ) {
+ this->matrix[ idx ].clear();
pivot_cols().get_col_and_clear( this->matrix[ idx ] );
+ }
idx_of_pivot_cols() = -1;
}