Automatic Differentiation
 
Loading...
Searching...
No Matches
cols.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_FUN_COLS_HPP
2#define STAN_MATH_PRIM_FUN_COLS_HPP
3
6#include <cstdint>
7
8namespace stan {
9namespace math {
10
19template <typename T, require_matrix_t<T>* = nullptr>
20inline int64_t cols(const T& m) {
21 return m.cols();
22}
23
24} // namespace math
25} // namespace stan
26
27#endif
int64_t cols(const T_x &x)
Returns the number of columns in the specified kernel generator expression.
Definition cols.hpp:21
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...