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

◆ combos()

template<typename Scalar >
Eigen::Matrix< Scalar, Eigen::Dynamic, Eigen::Dynamic > stan::math::internal::combos ( const int  k,
const Scalar  lambda,
const int  dim 
)
inline

Compute a matrix [p] of all [dim]-component vectors with [k] components equal to [lambda] and other components equal to zero.

Parameters
[in,out]pmatrix
knumber of components equal to lambda
lambdascalar
dimdimension

Definition at line 102 of file hcubature.hpp.