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
d6a72bff
Commit
d6a72bff
authored
6 years ago
by
Stan Jenkins
Browse files
Options
Download
Email Patches
Plain Diff
[Jenkins] auto-formatting by clang-format version 6.0.0 (tags/google/stable/2017-11-14)
parent
ebf206bb
stan-petsc
bugfix/1063-std-lgamma
bugfix/1152-algebra_solver-lambdas
bugfix/issue-1250-lgamma
bugfix/issue-1270-add-check-for-meta-includes
bugfix/issue-2708-map-rect-fail
build/config-device-id
code-cleanup/chain-final
code-cleanup/issue-937-flatten
develop
feature/1258-ad-test-core
feature/automatic-autodiff-testing
feature/concept-chainable-allocator
feature/daniel-windows
feature/eigen-aligned-malloc
feature/faster-ad-tls
feature/faster-ad-tls-v2
feature/faster-ad-tls-v3
feature/faster-ad-tls-v4
feature/faster-ad-tls-v4-windows
feature/faster-ad-tls-v6
feature/intel-tbb-lib
feature/issue-1012-binorm-copula-cdf
feature/issue-1115-newton_solver
feature/issue-123-complex
feature/issue-1257-diff_algebra_solver
feature/issue-38-multi_normal_sufficient
feature/issue-755-laplace
feature/issue-838-linseq
feature/issue-937-flatten-meta-again
feature/issue-937-flatten-meta-the-third
feature/issue-937-flatten-meta-third
feature/issue-962-bivar-norm
feature/issue-989-rev-mat-eig
feature/lambertw
feature/map_rect-cpp17
feature/map_rect-fail-windows
feature/matrix_sqrt
feature/openMP
feature/parallel_for_each
feature/python-test-math-dependencies
feature/refactor-nested
feature/sparse-cholesky
gpu_performance_tests
internal/no-assert
issue-static-init-order
master
mpi_errors
parallel-ad-tape-3
release/v2.19.0
release/v2.19.1
release/v2.20.0
seantest/faster-ad-tls-v3
stancon/syclik
syclik/forward-mode
v2.20.0
v2.19.1
v2.19.0
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
stan/math/prim/mat/fun/gp_dot_prod_cov.hpp
+6
-6
stan/math/prim/mat/fun/gp_dot_prod_cov.hpp
with
6 additions
and
6 deletions
+6
-6
stan/math/prim/mat/fun/gp_dot_prod_cov.hpp
View file @
d6a72bff
...
...
@@ -54,8 +54,8 @@ gp_dot_prod_cov(const std::vector<T_x> &x, const T_sigma &sigma) {
size_t
x_size
=
x
.
size
();
for
(
size_t
i
=
0
;
i
<
x_size
;
++
i
)
{
check_not_nan
(
"gp_dot_prod_cov"
,
"x"
,
x
[
i
]);
check_finite
(
"gp_dot_prod_cov"
,
"x"
,
x
[
i
]);
check_not_nan
(
"gp_dot_prod_cov"
,
"x"
,
x
[
i
]);
check_finite
(
"gp_dot_prod_cov"
,
"x"
,
x
[
i
]);
}
Eigen
::
Matrix
<
typename
stan
::
return_type
<
T_x
,
T_sigma
>::
type
,
Eigen
::
Dynamic
,
...
...
@@ -174,12 +174,12 @@ gp_dot_prod_cov(const std::vector<T_x1> &x1, const std::vector<T_x2> &x2,
size_t
x1_size
=
x1
.
size
();
size_t
x2_size
=
x2
.
size
();
for
(
size_t
i
=
0
;
i
<
x1_size
;
++
i
)
{
check_not_nan
(
"gp_dot_prod_cov"
,
"x1"
,
x1
[
i
]);
check_finite
(
"gp_dot_prod_cov"
,
"x1"
,
x1
[
i
]);
check_not_nan
(
"gp_dot_prod_cov"
,
"x1"
,
x1
[
i
]);
check_finite
(
"gp_dot_prod_cov"
,
"x1"
,
x1
[
i
]);
}
for
(
size_t
i
=
0
;
i
<
x2_size
;
++
i
)
{
check_not_nan
(
"gp_dot_prod_cov"
,
"x2"
,
x2
[
i
]);
check_finite
(
"gp_dot_prod_cov"
,
"x2"
,
x2
[
i
]);
check_not_nan
(
"gp_dot_prod_cov"
,
"x2"
,
x2
[
i
]);
check_finite
(
"gp_dot_prod_cov"
,
"x2"
,
x2
[
i
]);
}
Eigen
::
Matrix
<
typename
return_type
<
T_x1
,
T_x2
,
T_sigma
>::
type
,
Eigen
::
Dynamic
,
Eigen
::
Dynamic
>
...
...
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