Skip to content

Commit

Permalink
fix dotfeatures bug, intended check is 0<=num<=get_num_vectors()
Browse files Browse the repository at this point in the history
  • Loading branch information
Soeren Sonnenburg committed Nov 7, 2011
1 parent 8b95bcf commit 1c046cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shogun/features/DotFeatures.cpp
Expand Up @@ -308,7 +308,7 @@ SGVector<float64_t> CDotFeatures::get_computed_dot_feature_vector(int32_t num)
SGVector<float64_t> v;

int32_t dim=get_dim_feature_space();
ASSERT(num>=0 && num<=dim);
ASSERT(num>=0 && num<=get_num_vectors());
ASSERT(dim>0);

v.do_free=true;
Expand Down

0 comments on commit 1c046cc

Please sign in to comment.