summaryrefslogtreecommitdiff
path: root/fast/test/test_sparse_vector.cc
diff options
context:
space:
mode:
Diffstat (limited to 'fast/test/test_sparse_vector.cc')
-rw-r--r--fast/test/test_sparse_vector.cc37
1 files changed, 0 insertions, 37 deletions
diff --git a/fast/test/test_sparse_vector.cc b/fast/test/test_sparse_vector.cc
deleted file mode 100644
index 426bed1..0000000
--- a/fast/test/test_sparse_vector.cc
+++ /dev/null
@@ -1,37 +0,0 @@
-#include "sparse_vector.hh"
-
-
-int
-main(void)
-{
- Sv::SparseVector<string, score_t> a;
- a.insert("1", 1);
- a.insert("2", 2);
- cout << "a:" << a << endl;
-
- Sv::SparseVector<string, score_t> b;
- b.insert("2", 2);
- cout << "b:" << b << endl;
-
- Sv::SparseVector<string, score_t> c = a + b;
- cout << "a+b:" << c << endl;
-
- a += b;
- cout << "a+=b:" << a << endl;
-
- a -= b;
- cout << "a-=b:" << a << endl;
-
- cout << "a*2:" << a*2 << endl;
-
- a *= 2;
- cout << "a*=2:" << a << endl;
-
- string s("\"a\"=2 \"b\"=3");
- Sv::SparseVector<string, score_t>* sv = new Sv::SparseVector<string, score_t>(s);
- cout << *sv << endl;
- cout << sv->dot(*sv) << endl;
-
- return 0;
-}
-