From c95e71eef54cd36ba206e497d564b96682b2e926 Mon Sep 17 00:00:00 2001 From: "ulrich.bauer@gmail.com" Date: Tue, 3 Jun 2014 13:31:14 +0000 Subject: finalize git-svn-id: https://phat.googlecode.com/svn/trunk@182 8e3bb3c2-eed4-f18f-5264-0b6c94e6926d --- include/phat/representations/vector_vector.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/phat/representations/vector_vector.h') 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); + } }; } -- cgit v1.2.3