Stan Math Library
2.12.0
reverse mode automatic differentiation
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
stan
math
prim
mat
fun
cols.hpp
Go to the documentation of this file.
1
#ifndef STAN_MATH_PRIM_MAT_FUN_COLS_HPP
2
#define STAN_MATH_PRIM_MAT_FUN_COLS_HPP
3
4
#include <
stan/math/prim/mat/fun/Eigen.hpp
>
5
6
namespace
stan
{
7
namespace
math {
8
19
template
<
typename
T,
int
R,
int
C>
20
inline
int
cols
(
const
Eigen::Matrix<T, R, C>& m) {
21
return
m.cols();
22
}
23
24
}
25
}
26
#endif
stan
Definition:
log_sum_exp.hpp:8
stan::math::cols
int cols(const Eigen::Matrix< T, R, C > &m)
Return the number of columns in the specified matrix, vector, or row vector.
Definition:
cols.hpp:20
Eigen.hpp
[
Stan Home Page
]
© 2011–2016, Stan Development Team.