您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ t2函数代码示例

51自学网 2021-06-03 08:39:00
  C++
这篇教程C++ t2函数代码示例写得很实用,希望能帮到您。

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

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

示例1: t

void Timer::addTimer(int idTimer, f32 Timing){	std::pair<int, f32> t(idTimer, Timing);	std::pair<f32, f32> t2(0, 0);	//timers.insert();}
开发者ID:pspkiller,项目名称:CurrusBellum,代码行数:6,


示例2: PanelHouseholder

inline voidPanelHouseholder( DistMatrix<F>& A, DistMatrix<F,MD,STAR>& t ){#ifndef RELEASE    CallStackEntry entry("lq::PanelHouseholder");    if( A.Grid() != t.Grid() )        LogicError("{A,t} must be distributed over the same grid");    if( t.Height() != Min(A.Height(),A.Width()) || t.Width() != 1 )        LogicError        ("t must be a vector of height equal to the minimum dimension of A");    if( !t.AlignedWithDiagonal( A, 0 ) )        LogicError("t must be aligned with A's main diagonal");#endif    const Grid& g = A.Grid();    // Matrix views    DistMatrix<F>        ATL(g), ATR(g),  A00(g), a01(g),     A02(g),  aTopRow(g), ABottomPan(g),        ABL(g), ABR(g),  a10(g), alpha11(g), a12(g),                         A20(g), a21(g),     A22(g);    DistMatrix<F,MD,STAR>        tT(g),  t0(g),        tB(g),  tau1(g),                t2(g);    // Temporary distributions    DistMatrix<F> aTopRowConj(g);    DistMatrix<F,STAR,MR  > aTopRowConj_STAR_MR(g);    DistMatrix<F,MC,  STAR> z_MC_STAR(g);    PartitionDownDiagonal    ( A, ATL, ATR,         ABL, ABR, 0 );    PartitionDown    ( t, tT,         tB, 0 );    while( ATL.Height() < A.Height() && ATL.Width() < A.Width() )    {        RepartitionDownDiagonal        ( ATL, /**/ ATR,  A00, /**/ a01,     A02,         /*************/ /**********************/               /**/       a10, /**/ alpha11, a12,          ABL, /**/ ABR,  A20, /**/ a21,     A22, 1 );        RepartitionDown        ( tT,  t0,         /**/ /****/               tau1,          tB,  t2, 1 );        View1x2( aTopRow, alpha11, a12 );        View1x2( ABottomPan, a21, A22 );        aTopRowConj_STAR_MR.AlignWith( ABottomPan );        z_MC_STAR.AlignWith( ABottomPan );        //--------------------------------------------------------------------//        // Compute the Householder reflector        const F tau = Reflector( alpha11, a12 );        tau1.Set( 0, 0, tau );        // Apply the Householder reflector        const bool myDiagonalEntry = ( g.Row() == alpha11.ColAlignment() &&                                       g.Col() == alpha11.RowAlignment() );        F alpha = 0;        if( myDiagonalEntry )        {            alpha = alpha11.GetLocal(0,0);            alpha11.SetLocal(0,0,1);        }        Conjugate( aTopRow, aTopRowConj );        aTopRowConj_STAR_MR = aTopRowConj;        Zeros( z_MC_STAR, ABottomPan.Height(), 1 );        LocalGemv        ( NORMAL, F(1), ABottomPan, aTopRowConj_STAR_MR, F(0), z_MC_STAR );        z_MC_STAR.SumOverRow();        Ger        ( -Conj(tau),          z_MC_STAR.LockedMatrix(),          aTopRowConj_STAR_MR.LockedMatrix(),          ABottomPan.Matrix() );        if( myDiagonalEntry )            alpha11.SetLocal(0,0,alpha);        //--------------------------------------------------------------------//        SlidePartitionDown        ( tT,  t0,               tau1,         /**/ /****/          tB,  t2 );        SlidePartitionDownDiagonal        ( ATL, /**/ ATR,  A00, a01,     /**/ A02,               /**/       a10, alpha11, /**/ a12,         /*************/ /**********************/          ABL, /**/ ABR,  A20, a21,     /**/ A22 );    }}
开发者ID:khalid-hasanov,项目名称:Elemental,代码行数:97,


示例3: switch

void nofFarmhand::HandleDerivedEvent(const unsigned int id){    switch(state)    {        case STATE_WORK:        {            // fertig mit Arbeiten --> dann müssen die "Folgen des Arbeitens" ausgeführt werden            WorkFinished();            // Objekt wieder freigeben            gwg->GetNode(pos).reserved = false;            // Wieder nach Hause gehen            StartWalkingHome();            // Evtl. Sounds l
C++ t3_read_reg函数代码示例
C++ t1_tpi_read函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。