summaryrefslogtreecommitdiff
path: root/include/phat/representations/vector_vector.h
diff options
context:
space:
mode:
authorulrich.bauer@gmail.com <ulrich.bauer@gmail.com@8e3bb3c2-eed4-f18f-5264-0b6c94e6926d>2014-06-03 13:31:14 +0000
committerulrich.bauer@gmail.com <ulrich.bauer@gmail.com@8e3bb3c2-eed4-f18f-5264-0b6c94e6926d>2014-06-03 13:31:14 +0000
commitc95e71eef54cd36ba206e497d564b96682b2e926 (patch)
tree5cf69b5fbb2f99f5bb16ccc5ce1c019a077fe930 /include/phat/representations/vector_vector.h
parente88ddfc7854ee6eaa234ecffb4743522d76bf564 (diff)
finalize
git-svn-id: https://phat.googlecode.com/svn/trunk@182 8e3bb3c2-eed4-f18f-5264-0b6c94e6926d
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);
+ }
};
}