Automatic Differentiation
 
Loading...
Searching...
No Matches
modify_eigen_options.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_REV_META_MODIFY_EIGEN_OPTIONS_HPP
2#define STAN_MATH_REV_META_MODIFY_EIGEN_OPTIONS_HPP
3
6
7namespace stan {
8namespace math {
9namespace internal {
10
11template <typename Mat, int NewOptions>
12struct change_eigen_options_impl<var_value<Mat>, NewOptions,
14 using type = var_value<Eigen::Matrix<
15 typename Mat::Scalar, Mat::RowsAtCompileTime, Mat::ColsAtCompileTime,
16 NewOptions, Mat::MaxRowsAtCompileTime, Mat::MaxColsAtCompileTime>>;
17};
18
19template <typename Mat, int NewOptions>
20struct change_eigen_options_impl<var_value<Mat>, NewOptions,
22 using type = var_value<Eigen::Array<
23 typename Mat::Scalar, Mat::RowsAtCompileTime, Mat::ColsAtCompileTime,
24 NewOptions, Mat::MaxRowsAtCompileTime, Mat::MaxColsAtCompileTime>>;
25};
26
27} // namespace internal
28} // namespace math
29} // namespace stan
30
31#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.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Change the options of an Eigen matrix or array.