Automatic Differentiation
 
Loading...
Searching...
No Matches
modify_eigen_options.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_META_MODIFY_EIGEN_OPTIONS_HPP
2#define STAN_MATH_PRIM_META_MODIFY_EIGEN_OPTIONS_HPP
3
6
7namespace stan {
8namespace math {
9namespace internal {
15template <typename Mat, int NewOptions, typename = void>
17
18template <typename Mat, int NewOptions>
19struct change_eigen_options_impl<Mat, NewOptions,
21 using type
22 = Eigen::Matrix<typename Mat::Scalar, Mat::RowsAtCompileTime,
23 Mat::ColsAtCompileTime, NewOptions,
24 Mat::MaxRowsAtCompileTime, Mat::MaxColsAtCompileTime>;
25};
26
27template <typename Mat, int NewOptions>
28struct change_eigen_options_impl<Mat, NewOptions, require_eigen_array_t<Mat>> {
29 using type
30 = Eigen::Array<typename Mat::Scalar, Mat::RowsAtCompileTime,
31 Mat::ColsAtCompileTime, NewOptions,
32 Mat::MaxRowsAtCompileTime, Mat::MaxColsAtCompileTime>;
33};
34} // namespace internal
40template <typename Mat, int NewOptions>
42 plain_type_t<std::decay_t<Mat>>, NewOptions>::type;
43
44} // namespace math
45} // namespace stan
46
47#endif
require_t< is_eigen_array< std::decay_t< T > > > require_eigen_array_t
Require type satisfies is_eigen_array.
Definition is_eigen.hpp:216
require_t< is_eigen_matrix_base< std::decay_t< T > > > require_eigen_matrix_base_t
Require type satisfies is_eigen_matrix_base.
typename internal::change_eigen_options_impl< plain_type_t< std::decay_t< Mat > >, NewOptions >::type change_eigen_options_t
Change the options of an Eigen matrix or array.
typename plain_type< T >::type plain_type_t
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Eigen::Array< typename Mat::Scalar, Mat::RowsAtCompileTime, Mat::ColsAtCompileTime, NewOptions, Mat::MaxRowsAtCompileTime, Mat::MaxColsAtCompileTime > type
Eigen::Matrix< typename Mat::Scalar, Mat::RowsAtCompileTime, Mat::ColsAtCompileTime, NewOptions, Mat::MaxRowsAtCompileTime, Mat::MaxColsAtCompileTime > type
Change the options of an Eigen matrix or array.