Commit 62813cc0 authored by Daniel Lee's avatar Daniel Lee
Browse files

cpplint

Showing with 3 additions and 5 deletions
+3 -5
......@@ -2,14 +2,12 @@
#define STAN_MATH_PRIM_MAT_ERR_CHECK_POS_SEMIDEFINITE_HPP
#include <stan/math/prim/mat/err/check_symmetric.hpp>
#include <stan/math/prim/scal/err/check_not_nan.hpp>
#include <stan/math/prim/scal/err/check_positive.hpp>
#include <stan/math/prim/mat/fun/Eigen.hpp>
#include <stan/math/prim/mat/fun/value_of_rec.hpp>
#include <stan/math/prim/mat/meta/index_type.hpp>
#include <stan/math/prim/scal/err/domain_error.hpp>
#include <stan/math/prim/scal/err/check_not_nan.hpp>
#include <stan/math/prim/scal/err/check_positive.hpp>
#include <stan/math/prim/scal/err/domain_error.hpp>
#include <sstream>
namespace stan {
......
......@@ -37,12 +37,12 @@ void assert_matches_bins(const std::vector<double>& samples,
const std::vector<double>& bin_boundaries,
const std::vector<double>& proportions,
double tolerance) {
ASSERT_TRUE(samples.size() > 0);
ASSERT_GT(samples.size(), 0);
int N = samples.size();
std::vector<double> mysamples = samples;
std::sort(mysamples.begin(), mysamples.end());
ASSERT_TRUE(bin_boundaries.size() > 0);
ASSERT_GT(bin_boundaries.size(), 0);
ASSERT_TRUE(bin_boundaries.size() == proportions.size());
int K = bin_boundaries.size();
std::vector<double> expected;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment