summaryrefslogtreecommitdiff
path: root/include/phat/representations/vector_vector.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/phat/representations/vector_vector.h')
-rw-r--r--include/phat/representations/vector_vector.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/phat/representations/vector_vector.h b/include/phat/representations/vector_vector.h
index 15dbfb1..f111d6b 100644
--- a/include/phat/representations/vector_vector.h
+++ b/include/phat/representations/vector_vector.h
@@ -97,5 +97,11 @@ namespace phat {
target_col.swap(temp_col);
}
+
+ // finalizes given column
+ void _finalize( index idx ) {
+ column& col = matrix[ idx ];
+ column(col.begin(), col.end()).swap(col);
+ }
};
}