include/vinecopulib/vinecop/implementation/class.ipp
//! Checks if weights are compatible with the data.
Checks if weights are compatible with the data.
Checks if weights are compatible with the data .
inline void
Vinecop::check_weights_size(const Eigen::VectorXd& weights,
                            const Eigen::MatrixXd& data) const
{
  if ((weights.size() > 0) & (weights.size() != data.rows())) {
    throw std::runtime_error("sizes of weights and data don't match.");
  }
}
inline void Vinecop :: check_weights_size ( const Eigen :: VectorXd & weights , const Eigen :: MatrixXd & data ) const { if ( ( weights . size ( ) > 0 ) & ( weights . size ( ) != data . rows ( ) ) ) { throw std :: runtime_error ( " " ) ; } }
Checks if weights are compatible with the data.
Checks if weights are compatible with the data .