当前位置: 首页>>代码示例>>C++>>正文


C++ DBG_START_METH函数代码示例

本文整理汇总了C++中DBG_START_METH函数的典型用法代码示例。如果您正苦于以下问题:C++ DBG_START_METH函数的具体用法?C++ DBG_START_METH怎么用?C++ DBG_START_METH使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了DBG_START_METH函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: DBG_START_METH

 void CompoundVector::ElementWiseMinImpl(const Vector& x)
 {
   DBG_START_METH("CompoundVector::ElementWiseMinImpl", dbg_verbosity);
   DBG_ASSERT(vectors_valid_);
   const CompoundVector* comp_x = static_cast<const CompoundVector*>(&x);
   DBG_ASSERT(dynamic_cast<const CompoundVector*>(&x));
   DBG_ASSERT(NComps() == comp_x->NComps());
   for (Index i=0; i<NComps(); i++) {
     Comp(i)->ElementWiseMin(*comp_x->GetComp(i));
   }
 }
开发者ID:RobotLocomotion,项目名称:ipopt-mirror,代码行数:11,代码来源:IpCompoundVector.cpp

示例2: DBG_START_METH

 bool DenseGenSchurDriver::SchurFactorize()
 {
   DBG_START_METH("DenseGenSchurDriver::SchurFactorize", dbg_verbosity);
   /* This function is the very same as the one in DenseGenSchurDriver */
   bool retval;
   if (IsValid(S_)) {
     retval = S_->ComputeLUFactorInPlace();
     return retval;
   }
   return true;
 }
开发者ID:BRAINSia,项目名称:calatk,代码行数:11,代码来源:SensDenseGenSchurDriver.cpp

示例3: DBG_START_METH

  bool CachedResults<T>::GetCachedResult1Dep(T& retResult, const TaggedObject* dependent1)
  {
#ifdef IP_DEBUG_CACHE
    DBG_START_METH("CachedResults<T>::GetCachedResult1Dep", dbg_verbosity);
#endif

    std::vector<const TaggedObject*> dependents(1);
    dependents[0] = dependent1;

    return GetCachedResult(retResult, dependents);
  }
开发者ID:MengbinZhu,项目名称:pfldp,代码行数:11,代码来源:IpCachedResults.hpp

示例4: DBG_START_METH

 SmartPtr<const Vector> StandardScalingBase::unapply_vector_scaling_x(
   const SmartPtr<const Vector>& v)
 {
   DBG_START_METH("NLPScalingObject::unapply_vector_scaling_x", dbg_verbosity);
   if (IsValid(dx_)) {
     return ConstPtr(unapply_vector_scaling_x_NonConst(v));
   }
   else {
     return v;
   }
 }
开发者ID:ChinaQuants,项目名称:Ipopt,代码行数:11,代码来源:IpNLPScaling.cpp

示例5: DBG_START_METH

  inline
  void Subject::Notify(Observer::NotifyType notify_type) const
  {
#ifdef IP_DEBUG_OBSERVER
    DBG_START_METH("Subject::Notify", dbg_verbosity);
#endif

    std::vector<Observer*>::iterator iter;
    for (iter = observers_.begin(); iter != observers_.end(); iter++) {
      (*iter)->ProcessNotification(notify_type, this);
    }
  }
开发者ID:Gurupradeep,项目名称:Compiler-Project,代码行数:12,代码来源:IpObserver.hpp

示例6: DBG_START_METH

  MumpsSolverInterface::~MumpsSolverInterface()
  {
    DBG_START_METH("MumpsSolverInterface::~MumpsSolverInterface()",
                   dbg_verbosity);

    DMUMPS_STRUC_C* mumps_ = (DMUMPS_STRUC_C*)mumps_ptr_;
    mumps_->job = -2; //terminate mumps
    dmumps_c(mumps_);
    MPI_Finalize();
    delete [] mumps_->a;
    delete mumps_;
  }
开发者ID:aimanqais,项目名称:gerardus,代码行数:12,代码来源:IpMumpsSolverInterface.cpp

示例7: DBG_START_METH

  bool CGPenaltyLSAcceptor::RestoreBestPoint()
  {
    DBG_START_METH("CGPenaltyLSAcceptor::RestoreBestPoint",
                   dbg_verbosity);

    if (!IsValid(best_iterate_)) {
      return false;
    }
    SmartPtr<IteratesVector> prev_iterate = best_iterate_->MakeNewContainer();
    IpData().set_trial(prev_iterate);
    return true;
  }
开发者ID:BRAINSia,项目名称:calatk,代码行数:12,代码来源:IpCGPenaltyLSAcceptor.cpp

示例8: DBG_START_METH

  IterativeWsmpSolverInterface::~IterativeWsmpSolverInterface()
  {
    DBG_START_METH("IterativeWsmpSolverInterface::~IterativeWsmpSolverInterface()",
                   dbg_verbosity);

    // Clear WSMP's memory
    F77_FUNC_(wsmp_clear,WSMP_CLEAR)();

    delete[] IPARM_;
    delete[] DPARM_;
    delete[] a_;
  }
开发者ID:BRAINSia,项目名称:calatk,代码行数:12,代码来源:IpIterativeWsmpSolverInterface.cpp

示例9: DBG_START_METH

Ma57TSolverInterface::~Ma57TSolverInterface()
{
    DBG_START_METH("Ma57TSolverInterface::~Ma57TSolverInterface()",
                   dbg_verbosity);
    delete [] a_;

    delete [] wd_fact_;
    delete [] wd_ifact_;

    delete [] wd_iwork_;
    delete [] wd_keep_;
}
开发者ID:fbudin69500,项目名称:calatk,代码行数:12,代码来源:IpMa57TSolverInterface.cpp

示例10: DBG_START_METH

 SensAlgorithm::~SensAlgorithm()
 {
   DBG_START_METH("SensAlgorithm::~SensAlgorithm", dbg_verbosity);
   if (NULL != DirectionalD_X_) delete [] DirectionalD_X_ ;
   if (NULL != DirectionalD_L_) delete [] DirectionalD_L_ ;
   if (NULL != DirectionalD_Z_U_) delete [] DirectionalD_Z_U_ ;
   if (NULL != DirectionalD_Z_L_) delete [] DirectionalD_Z_L_ ;
   if (NULL != SensitivityM_X_) delete [] SensitivityM_X_ ;
   if (NULL != SensitivityM_L_) delete [] SensitivityM_L_ ;
   if (NULL != SensitivityM_Z_U_) delete [] SensitivityM_Z_U_ ;
   if (NULL != SensitivityM_Z_L_) delete [] SensitivityM_Z_L_ ;
 }
开发者ID:ChinaQuants,项目名称:Ipopt,代码行数:12,代码来源:SensAlgorithm.cpp

示例11: DBG_START_METH

 Number PiecewisePenalty::BiggestBarr()
 {
   DBG_START_METH("PiecewisePenalty::BiggestBarr", dbg_verbosity);
   DBG_ASSERT(!IsPiecewisePenaltyListEmpty());
   Number value = -1e20;
   if (PiecewisePenalty_list_.size() > 0) {
     std::vector<PiecewisePenEntry>::iterator iter;
     iter = PiecewisePenalty_list_.end();
     iter--;
     value = iter->barrier_obj;
   }
   return value;
 }
开发者ID:BRAINSia,项目名称:calatk,代码行数:13,代码来源:IpPiecewisePenalty.cpp

示例12: DBG_START_METH

  bool TSymDependencyDetector::DetermineDependentRows(
    Index n_rows, Index n_cols, Index n_jac_nz, Number* jac_c_vals,
    Index* jac_c_iRow, Index* jac_c_jCol, std::list<Index>& c_deps)
  {
    DBG_START_METH("TSymDependencyDetector::DetermineDependentRows",
                   dbg_verbosity);

    ESymSolverStatus retval =
      tsym_linear_solver_->DetermineDependentRows(n_rows, n_cols, n_jac_nz,
          jac_c_vals, jac_c_iRow,
          jac_c_jCol, c_deps);

    return (retval == SYMSOLVER_SUCCESS);
  }
开发者ID:ChinaQuants,项目名称:Ipopt,代码行数:14,代码来源:IpTSymDependencyDetector.cpp

示例13: DBG_START_METH

  bool IndexPCalculator::InitializeImpl(const OptionsList& options,
					const std::string& prefix)
  {
    DBG_START_METH("IndexPCalculator::InitializeImpl", dbg_verbosity);

    SmartPtr<const IteratesVector> iv = IpData().curr();
    nrows_ = 0;
    for (Index i=0; i<iv->NComps(); ++i) {
      nrows_+=iv->GetComp(i)->Dim();
    }
    data_A()->Print(Jnlst(),J_VECTOR,J_USER1,"PCalc SchurData");

    return true;
  }
开发者ID:liangboyun,项目名称:ipopt_wps,代码行数:14,代码来源:SensIndexPCalculator.cpp

示例14: a_

  WsmpSolverInterface::WsmpSolverInterface()
      :
      a_(NULL),
      negevals_(-1),
      initialized_(false),

      PERM_(NULL),
      INVP_(NULL)
  {
    DBG_START_METH("WsmpSolverInterface::WsmpSolverInterface()",dbg_verbosity);

    IPARM_ = new ipfint[64];
    DPARM_ = new double[64];
  }
开发者ID:d1100,项目名称:Ipopt,代码行数:14,代码来源:IpWsmpSolverInterface.cpp

示例15: DBG_START_METH

 SmartPtr<Vector> StandardScalingBase::unapply_vector_scaling_x_NonConst(
   const SmartPtr<const Vector>& v)
 {
   DBG_START_METH("StandardScalingBase::unapply_vector_scaling_x_NonConst",
                  dbg_verbosity);
   SmartPtr<Vector> unscaled_x = v->MakeNewCopy();
   if (IsValid(dx_)) {
     unscaled_x->ElementWiseDivide(*dx_);
   }
   else {
     DBG_PRINT((1, "Creating copy in unapply_vector_scaling_x_NonConst!"));
   }
   return unscaled_x;
 }
开发者ID:AyMaN-GhOsT,项目名称:simbody,代码行数:14,代码来源:IpNLPScaling.cpp


注:本文中的DBG_START_METH函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。