summaryrefslogtreecommitdiff
path: root/utils/ts.cc
diff options
context:
space:
mode:
Diffstat (limited to 'utils/ts.cc')
-rw-r--r--utils/ts.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/utils/ts.cc b/utils/ts.cc
index 563794c5..3694e076 100644
--- a/utils/ts.cc
+++ b/utils/ts.cc
@@ -40,6 +40,19 @@ void test_logv() {
MPrint(x);
x -= x;
MPrint(x);
+ FastSparseVector<prob_t> y;
+ y = x;
+ for (int i = 1; i < 10; ++i) {
+ x.set_value(i, prob_t(i*1.3));
+ y.set_value(i*2, prob_t(i*1.4));
+ }
+ swap(x,y);
+ MPrint(y);
+ MPrint(x);
+ x = y;
+ y = y;
+ x = x;
+ MPrint(y);
}
int main() {