Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ constant()

template<typename T , typename = require_arithmetic_t<T>>
auto stan::math::constant ( const T  a,
int  rows,
int  cols 
)
inline

Matrix of repeated values in kernel generator expressions.

In most cases scalars should be directly used instead of this. This is, however, useful for initializing some expression to specific value if that expresssion could also be plain matrix_cl.

Template Parameters
Ttype of argument
Parameters
ainput argument
rowsnumber of rows
colsnumber of columns
Returns
Block of given expression

Definition at line 130 of file constant.hpp.