Skip to content

Commit 66ab23f

Browse files
committed
Missed opencl overloads
1 parent 6fbb3a4 commit 66ab23f

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

stan/math/opencl/prim/cols.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#ifdef STAN_OPENCL
44

55
#include <stan/math/opencl/matrix_cl.hpp>
6+
#include <cstdint>
67

78
namespace stan {
89
namespace math {
@@ -17,7 +18,7 @@ namespace math {
1718
*/
1819
template <typename T_x,
1920
require_nonscalar_prim_or_rev_kernel_expression_t<T_x>* = nullptr>
20-
inline int cols(const T_x& x) {
21+
inline int64_t cols(const T_x& x) {
2122
return x.cols();
2223
}
2324
} // namespace math

stan/math/opencl/prim/rows.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#ifdef STAN_OPENCL
44

55
#include <stan/math/opencl/matrix_cl.hpp>
6+
#include <cstdint>
67

78
namespace stan {
89
namespace math {
@@ -18,7 +19,7 @@ namespace math {
1819

1920
template <typename T_x,
2021
require_nonscalar_prim_or_rev_kernel_expression_t<T_x>* = nullptr>
21-
inline int rows(const T_x& x) {
22+
inline int64_t rows(const T_x& x) {
2223
return x.rows();
2324
}
2425

0 commit comments

Comments
 (0)