Skip to content

Commit

Permalink
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
Browse files Browse the repository at this point in the history
  • Loading branch information
stan-buildbot committed Nov 29, 2023
1 parent e540cba commit f2fce93
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 54 deletions.
7 changes: 4 additions & 3 deletions stan/math/prim/meta/is_string_convertible.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ using is_string_convertible = std::is_convertible<T, std::string>;
// STAN_ADD_REQUIRE_UNARY(string_convertible, is_string_convertible,
// require_std);
template <typename T>
using require_string_convertible_t = require_t<is_string_convertible<std::decay_t<T>>>;
using require_string_convertible_t
= require_t<is_string_convertible<std::decay_t<T>>>;

template <typename T>
using require_not_string_convertible_t
Expand All @@ -31,15 +32,15 @@ using require_all_string_convertible_t
template <typename... Types>
using require_any_string_convertible_t
= require_any_t<is_string_convertible<std::decay_t<Types>>...>;

template <typename... Types>
using require_all_not_string_convertible_t
= require_all_not_t<is_string_convertible<std::decay_t<Types>>...>;

template <typename... Types>
using require_any_not_string_convertible_t
= require_any_not_t<is_string_convertible<std::decay_t<Types>>...>;

// STAN_ADD_REQUIRE_UNARY_INNER(string_convertible, is_string_convertible,
// require_std);
} // namespace stan
Expand Down
7 changes: 4 additions & 3 deletions stan/math/prim/meta/is_var_or_arithmetic.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ using is_var_or_arithmetic = math::conjunction<is_var_or_arithmetic_type<T>...>;
// STAN_ADD_REQUIRE_UNARY(var_or_arithmetic, is_var_or_arithmetic,
// require_stan_scalar_real);
template <typename T>
using require_var_or_arithmetic_t = require_t<is_var_or_arithmetic<std::decay_t<T>>>;
using require_var_or_arithmetic_t
= require_t<is_var_or_arithmetic<std::decay_t<T>>>;

template <typename T>
using require_not_var_or_arithmetic_t
Expand All @@ -45,15 +46,15 @@ using require_all_var_or_arithmetic_t
template <typename... Types>
using require_any_var_or_arithmetic_t
= require_any_t<is_var_or_arithmetic<std::decay_t<Types>>...>;

template <typename... Types>
using require_all_not_var_or_arithmetic_t
= require_all_not_t<is_var_or_arithmetic<std::decay_t<Types>>...>;

template <typename... Types>
using require_any_not_var_or_arithmetic_t
= require_any_not_t<is_var_or_arithmetic<std::decay_t<Types>>...>;

// STAN_ADD_REQUIRE_UNARY_INNER(var_or_arithmetic, is_var_or_arithmetic,
// require_stan_scalar_real);
template <typename... Types>
Expand Down
97 changes: 55 additions & 42 deletions stan/math/prim/meta/is_vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ using require_all_not_eigen_vector_t
template <typename... Types>
using require_any_not_eigen_vector_t
= require_any_not_t<is_eigen_vector<std::decay_t<Types>>...>;

// STAN_ADD_REQUIRE_CONTAINER(eigen_vector, is_eigen_vector,
// require_eigens_types);
template <template <class...> class TypeCheck, class... Check>
Expand All @@ -196,50 +196,60 @@ using require_eigen_vector_vt
TypeCheck, Check...>>;

template <template <class...> class TypeCheck, class... Check>
using require_not_eigen_vector_vt = require_not_t<
container_type_check_base<is_eigen_vector, value_type_t, TypeCheck, Check...>>;
using require_not_eigen_vector_vt
= require_not_t<container_type_check_base<is_eigen_vector, value_type_t,
TypeCheck, Check...>>;

template <template <class...> class TypeCheck, class... Check>
using require_any_eigen_vector_vt = require_any_t<
container_type_check_base<is_eigen_vector, value_type_t, TypeCheck, Check>...>;

using require_any_eigen_vector_vt
= require_any_t<container_type_check_base<is_eigen_vector, value_type_t,
TypeCheck, Check>...>;

template <template <class...> class TypeCheck, class... Check>
using require_any_not_eigen_vector_vt = require_any_not_t<
container_type_check_base<is_eigen_vector, value_type_t, TypeCheck, Check>...>;
using require_any_not_eigen_vector_vt
= require_any_not_t<container_type_check_base<is_eigen_vector, value_type_t,
TypeCheck, Check>...>;

template <template <class...> class TypeCheck, class... Check>
using require_all_eigen_vector_vt
= require_all_t<container_type_check_base<is_eigen_vector, value_type_t,
TypeCheck, Check>...>;

template <template <class...> class TypeCheck, class... Check>
using require_all_not_eigen_vector_vt = require_all_not_t<
container_type_check_base<is_eigen_vector, value_type_t, TypeCheck, Check>...>;
using require_all_not_eigen_vector_vt
= require_all_not_t<container_type_check_base<is_eigen_vector, value_type_t,
TypeCheck, Check>...>;

template <template <class...> class TypeCheck, class... Check>
using require_eigen_vector_st = require_t<
container_type_check_base<is_eigen_vector, scalar_type_t, TypeCheck, Check...>>;
using require_eigen_vector_st
= require_t<container_type_check_base<is_eigen_vector, scalar_type_t,
TypeCheck, Check...>>;

template <template <class...> class TypeCheck, class... Check>
using require_not_eigen_vector_st = require_not_t<
container_type_check_base<is_eigen_vector, scalar_type_t, TypeCheck, Check...>>;
using require_not_eigen_vector_st
= require_not_t<container_type_check_base<is_eigen_vector, scalar_type_t,
TypeCheck, Check...>>;

template <template <class...> class TypeCheck, class... Check>
using require_any_eigen_vector_st = require_any_t<
container_type_check_base<is_eigen_vector, scalar_type_t, TypeCheck, Check>...>;
using require_any_eigen_vector_st
= require_any_t<container_type_check_base<is_eigen_vector, scalar_type_t,
TypeCheck, Check>...>;

template <template <class...> class TypeCheck, class... Check>
using require_any_not_eigen_vector_st = require_any_not_t<
container_type_check_base<is_eigen_vector, scalar_type_t, TypeCheck, Check>...>;
using require_any_not_eigen_vector_st
= require_any_not_t<container_type_check_base<
is_eigen_vector, scalar_type_t, TypeCheck, Check>...>;

template <template <class...> class TypeCheck, class... Check>
using require_all_eigen_vector_st = require_all_t<
container_type_check_base<is_eigen_vector, scalar_type_t, TypeCheck, Check>...>;
using require_all_eigen_vector_st
= require_all_t<container_type_check_base<is_eigen_vector, scalar_type_t,
TypeCheck, Check>...>;

template <template <class...> class TypeCheck, class... Check>
using require_all_not_eigen_vector_st = require_all_not_t<
container_type_check_base<is_eigen_vector, scalar_type_t, TypeCheck, Check>...>;

using require_all_not_eigen_vector_st
= require_all_not_t<container_type_check_base<
is_eigen_vector, scalar_type_t, TypeCheck, Check>...>;

/**
* Require `Row` is a row vector and `Col` is a column vector.
* @ingroup require_eigen_types
Expand Down Expand Up @@ -289,8 +299,7 @@ template <typename T>
using require_vector_t = require_t<is_vector<std::decay_t<T>>>;

template <typename T>
using require_not_vector_t
= require_not_t<is_vector<std::decay_t<T>>>;
using require_not_vector_t = require_not_t<is_vector<std::decay_t<T>>>;

template <typename... Types>
using require_all_vector_t = require_all_t<is_vector<std::decay_t<Types>>...>;
Expand Down Expand Up @@ -318,7 +327,7 @@ using require_not_vector_vt = require_not_t<
template <template <class...> class TypeCheck, class... Check>
using require_any_vector_vt = require_any_t<
container_type_check_base<is_vector, value_type_t, TypeCheck, Check>...>;

template <template <class...> class TypeCheck, class... Check>
using require_any_not_vector_vt = require_any_not_t<
container_type_check_base<is_vector, value_type_t, TypeCheck, Check>...>;
Expand All @@ -330,7 +339,7 @@ using require_all_vector_vt = require_all_t<
template <template <class...> class TypeCheck, class... Check>
using require_all_not_vector_vt = require_all_not_t<
container_type_check_base<is_vector, value_type_t, TypeCheck, Check>...>;

template <template <class...> class TypeCheck, class... Check>
using require_vector_st = require_t<
container_type_check_base<is_vector, scalar_type_t, TypeCheck, Check...>>;
Expand All @@ -346,15 +355,15 @@ using require_any_vector_st = require_any_t<
template <template <class...> class TypeCheck, class... Check>
using require_any_not_vector_st = require_any_not_t<
container_type_check_base<is_vector, scalar_type_t, TypeCheck, Check>...>;

template <template <class...> class TypeCheck, class... Check>
using require_all_vector_st = require_all_t<
container_type_check_base<is_vector, scalar_type_t, TypeCheck, Check>...>;

template <template <class...> class TypeCheck, class... Check>
using require_all_not_vector_st = require_all_not_t<
container_type_check_base<is_vector, scalar_type_t, TypeCheck, Check>...>;

namespace internal {

/** \ingroup type_trait
Expand Down Expand Up @@ -424,7 +433,7 @@ using require_all_not_std_vector_t
template <typename... Types>
using require_any_not_std_vector_t
= require_any_not_t<is_std_vector<std::decay_t<Types>>...>;

// STAN_ADD_REQUIRE_CONTAINER(std_vector, is_std_vector, require_std);
template <template <class...> class TypeCheck, class... Check>
using require_std_vector_vt
Expand All @@ -442,9 +451,10 @@ using require_any_std_vector_vt
TypeCheck, Check>...>;

template <template <class...> class TypeCheck, class... Check>
using require_any_not_std_vector_vt = require_any_not_t<
container_type_check_base<is_std_vector, value_type_t, TypeCheck, Check>...>;

using require_any_not_std_vector_vt
= require_any_not_t<container_type_check_base<is_std_vector, value_type_t,
TypeCheck, Check>...>;

template <template <class...> class TypeCheck, class... Check>
using require_all_std_vector_vt
= require_all_t<container_type_check_base<is_std_vector, value_type_t,
Expand All @@ -461,26 +471,29 @@ using require_std_vector_st
TypeCheck, Check...>>;

template <template <class...> class TypeCheck, class... Check>
using require_not_std_vector_st = require_not_t<
container_type_check_base<is_std_vector, scalar_type_t, TypeCheck, Check...>>;

using require_not_std_vector_st
= require_not_t<container_type_check_base<is_std_vector, scalar_type_t,
TypeCheck, Check...>>;

template <template <class...> class TypeCheck, class... Check>
using require_any_std_vector_st
= require_any_t<container_type_check_base<is_std_vector, scalar_type_t,
TypeCheck, Check>...>;

template <template <class...> class TypeCheck, class... Check>
using require_any_not_std_vector_st = require_any_not_t<
container_type_check_base<is_std_vector, scalar_type_t, TypeCheck, Check>...>;

using require_any_not_std_vector_st
= require_any_not_t<container_type_check_base<is_std_vector, scalar_type_t,
TypeCheck, Check>...>;

template <template <class...> class TypeCheck, class... Check>
using require_all_std_vector_st
= require_all_t<container_type_check_base<is_std_vector, scalar_type_t,
TypeCheck, Check>...>;

template <template <class...> class TypeCheck, class... Check>
using require_all_not_std_vector_st = require_all_not_t<
container_type_check_base<is_std_vector, scalar_type_t, TypeCheck, Check>...>;

using require_all_not_std_vector_st
= require_all_not_t<container_type_check_base<is_std_vector, scalar_type_t,
TypeCheck, Check>...>;

} // namespace stan
#endif
2 changes: 1 addition & 1 deletion stan/math/prim/meta/is_vector_like.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ using require_all_not_vector_like_t
template <typename... Types>
using require_any_not_vector_like_t
= require_any_not_t<is_vector_like<std::decay_t<Types>>...>;

// STAN_ADD_REQUIRE_CONTAINER(vector_like, is_vector_like, require_std);
template <template <class...> class TypeCheck, class... Check>
using require_vector_like_vt
Expand Down
10 changes: 5 additions & 5 deletions stan/math/prim/meta/require_generics.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ using require_all_st_same
template <typename T, typename... Types>
using require_any_not_st_same
= require_any_not_t<std::is_same<scalar_type_t<std::decay_t<T>>,
scalar_type_t<std::decay_t<Types>>>...>;
scalar_type_t<std::decay_t<Types>>>...>;

template <typename T, typename S>
using require_vt_same = require_t<
std::is_same<value_type_t<std::decay_t<T>>, value_type_t<std::decay_t<S>>>>;
Expand All @@ -74,8 +74,8 @@ using require_not_convertible_t
= require_not_t<std::is_convertible<std::decay_t<T>, std::decay_t<S>>>;

template <typename T, typename... Types>
using require_all_convertible_t
= require_all_t<std::is_convertible<std::decay_t<T>, std::decay_t<Types>>...>;
using require_all_convertible_t = require_all_t<
std::is_convertible<std::decay_t<T>, std::decay_t<Types>>...>;

// STAN_ADD_REQUIRE_BINARY(assignable, std::is_assignable, require_std);
template <typename T, typename S>
Expand Down Expand Up @@ -222,7 +222,7 @@ using require_any_arithmetic_t
template <typename... Types>
using require_all_not_arithmetic_t
= require_all_not_t<std::is_arithmetic<std::decay_t<Types>>...>;

template <typename... Types>
using require_any_not_arithmetic_t
= require_any_not_t<std::is_arithmetic<std::decay_t<Types>>...>;
Expand Down

0 comments on commit f2fce93

Please sign in to comment.