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

◆ signcombos()

template<typename Scalar >
Eigen::Matrix< Scalar, Eigen::Dynamic, Eigen::Dynamic > stan::math::internal::signcombos ( 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 (with all possible signs).

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

Definition at line 128 of file hcubature.hpp.