Stan Math Library  2.20.0
reverse mode automatic differentiation
broadcast_array.hpp
Go to the documentation of this file.
3 #include <stdexcept>
4 
5 #ifndef STAN_MATH_PRIM_MAT_META_BROADCAST_ARRAY_HPP
6 #define STAN_MATH_PRIM_MAT_META_BROADCAST_ARRAY_HPP
7 
8 namespace stan {
9 namespace math {
10 namespace internal {
11 template <typename ViewElt, typename OpElt, int R, int C>
12 class empty_broadcast_array<ViewElt, Eigen::Matrix<OpElt, R, C> > {
13  public:
18  ViewElt& operator[](int /*i*/);
22  ViewElt& operator()(int /*i*/);
26  void operator=(const Eigen::Matrix<ViewElt, R, C>& /*A*/);
30  void operator+=(Eigen::Matrix<ViewElt, R, C> /*A*/);
34  void operator-=(Eigen::Matrix<ViewElt, R, C> /*A*/);
38  Eigen::Matrix<ViewElt, 1, C>& row(int /*i*/);
42  Eigen::Matrix<ViewElt, R, 1>& col(int /*i*/);
43 };
44 } // namespace internal
45 } // namespace math
46 } // namespace stan
47 #endif
void operator=(const Y &)
Not implemented so cannot be called.
T & operator[](int)
Not implemented so cannot be called.
(Expert) Numerical traits for algorithmic differentiation variables.
Eigen::Matrix< T, 1, Eigen::Dynamic > row(const Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > &m, size_t i)
Return the specified row of the specified matrix, using start-at-1 indexing.
Definition: row.hpp:24
Eigen::Matrix< T, Eigen::Dynamic, 1 > col(const Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > &m, size_t j)
Return the specified column of the specified matrix using start-at-1 indexing.
Definition: col.hpp:23

     [ Stan Home Page ] © 2011–2018, Stan Development Team.