Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Francesco Brarda
stan-math-petsc
Commits
62813cc0
Commit
62813cc0
authored
6 years ago
by
Daniel Lee
Browse files
Options
Download
Email Patches
Plain Diff
cpplint
parent
54d6a34b
stan-petsc
bugfix/issue-1250-lgamma
bugfix/issue-1270-add-check-for-meta-includes
code-cleanup/chain-final
develop
feature/1258-ad-test-core
feature/concept-chainable-allocator
feature/eigen-aligned-malloc
feature/faster-ad-tls-v6
feature/intel-tbb-lib
feature/issue-1115-newton_solver
feature/issue-1257-diff_algebra_solver
feature/issue-755-laplace
feature/issue-937-flatten-meta-again
feature/issue-937-flatten-meta-the-third
feature/issue-937-flatten-meta-third
feature/issue-989-rev-mat-eig
feature/lambertw
feature/python-test-math-dependencies
feature/sparse-cholesky
issue-static-init-order
master
parallel-ad-tape-3
release/v2.20.0
stancon/syclik
syclik/forward-mode
v2.20.0
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
stan/math/prim/mat/err/check_pos_semidefinite.hpp
+1
-3
stan/math/prim/mat/err/check_pos_semidefinite.hpp
test/unit/math/prim/scal/prob/util.hpp
+2
-2
test/unit/math/prim/scal/prob/util.hpp
with
3 additions
and
5 deletions
+3
-5
stan/math/prim/mat/err/check_pos_semidefinite.hpp
View file @
62813cc0
...
...
@@ -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
{
...
...
This diff is collapsed.
Click to expand it.
test/unit/math/prim/scal/prob/util.hpp
View file @
62813cc0
...
...
@@ -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_T
RUE
(
samples
.
size
()
>
0
);
ASSERT_
G
T
(
samples
.
size
()
,
0
);
int
N
=
samples
.
size
();
std
::
vector
<
double
>
mysamples
=
samples
;
std
::
sort
(
mysamples
.
begin
(),
mysamples
.
end
());
ASSERT_T
RUE
(
bin_boundaries
.
size
()
>
0
);
ASSERT_
G
T
(
bin_boundaries
.
size
()
,
0
);
ASSERT_TRUE
(
bin_boundaries
.
size
()
==
proportions
.
size
());
int
K
=
bin_boundaries
.
size
();
std
::
vector
<
double
>
expected
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help