From 9c2172ee56946d674c1d3fb361a80d943dab8b70 Mon Sep 17 00:00:00 2001 From: Davis King Date: Tue, 1 May 2012 19:46:29 -0400 Subject: [PATCH] Gave the sparse vector tools their own #include file. --- dlib/sparse_vector.h | 10 ++++++++++ dlib/svm/sparse_vector.h | 1 + dlib/svm/sparse_vector_abstract.h | 1 + dlib/test/sparse_vector.cpp | 2 +- 4 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 dlib/sparse_vector.h diff --git a/dlib/sparse_vector.h b/dlib/sparse_vector.h new file mode 100644 index 000000000..62c959f8a --- /dev/null +++ b/dlib/sparse_vector.h @@ -0,0 +1,10 @@ +// Copyright (C) 2012 Davis E. King (davis@dlib.net) +// License: Boost Software License See LICENSE.txt for the full license. +#ifndef DLIB_SPaRSE_VECTOR_H__ +#define DLIB_SPaRSE_VECTOR_H__ + +#include "svm/sparse_vector.h" + +#endif // DLIB_SPaRSE_VECTOR_H__ + + diff --git a/dlib/svm/sparse_vector.h b/dlib/svm/sparse_vector.h index 1c812fea3..3f8880d91 100644 --- a/dlib/svm/sparse_vector.h +++ b/dlib/svm/sparse_vector.h @@ -11,6 +11,7 @@ #include // This is included just so we can do some disable_if stuff on it in the max_index_plus_one routine(). #include "../manifold_regularization/sample_pair.h" +#include "../matrix.h" namespace dlib diff --git a/dlib/svm/sparse_vector_abstract.h b/dlib/svm/sparse_vector_abstract.h index 1606ff6b1..9cffc6bb5 100644 --- a/dlib/svm/sparse_vector_abstract.h +++ b/dlib/svm/sparse_vector_abstract.h @@ -6,6 +6,7 @@ #include #include "../algs.h" #include "../serialize.h" +#include "../matrix.h" #include #include diff --git a/dlib/test/sparse_vector.cpp b/dlib/test/sparse_vector.cpp index b8c65b8b6..bdf2e147c 100644 --- a/dlib/test/sparse_vector.cpp +++ b/dlib/test/sparse_vector.cpp @@ -1,8 +1,8 @@ // Copyright (C) 2012 Davis E. King (davis@dlib.net) // License: Boost Software License See LICENSE.txt for the full license. +#include #include "tester.h" -#include #include #include #include