Stan  1.3
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Pages
col.hpp
Go to the documentation of this file.
1 #ifndef __STAN__MATH__MATRIX__COL_HPP__
2 #define __STAN__MATH__MATRIX__COL_HPP__
3 
6 
7 namespace stan {
8  namespace math {
9 
21  template <typename T>
22  inline
23  Eigen::Matrix<T,Eigen::Dynamic,1>
24  col(const Eigen::Matrix<T,Eigen::Dynamic,Eigen::Dynamic>& m,
25  size_t j) {
26  validate_column_index(m,j,"col");
27  return m.col(j - 1);
28  }
29 
30  }
31 }
32 #endif

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