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


C++ Mset函数代码示例

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


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

示例1: Mselscal

void ATL_crefherkLC
(
   const int                  N,
   const int                  K,
   const float                ALPHA,
   const float                * A,
   const int                  LDA,
   const float                BETA,
   float                      * C,
   const int                  LDC
)
{
/*
 * Purpose
 * =======
 *
 * ATL_crefherkLC( ... )
 *
 * <=>
 *
 * ATL_crefherk( AtlasLower, AtlasConjTrans, ... )
 *
 * See ATL_crefherk for details.
 *
 * ---------------------------------------------------------------------
 */
/*
 * .. Local Variables ..
 */
   register float             t0_i, t0_r;
   int                        i, iali, ialj, icij, j, jai, jaj, jcj, l,
                              lda2 = ( LDA << 1 ), ldc2 = ( LDC << 1 );
/* ..
 * .. Executable Statements ..
 *
 */
   for( j = 0, jaj = 0, jcj = 0; j < N; j++, jaj += lda2, jcj += ldc2 )
   {
      jai   = j * lda2; icij  = ( j << 1 ) + jcj; t0_r = ATL_sZERO;

      for( l = 0, iali = jai, ialj = jaj; l < K; l++, iali += 2, ialj += 2 )
      { t0_r += A[iali] * A[ialj] + A[iali+1] * A[ialj+1]; }
      Mselscal( BETA, C[icij] );
      Mset( C[icij] + ALPHA * t0_r, ATL_sZERO, C[icij], C[icij+1] );
      icij += 2; jai += lda2;

      for( i = j+1; i < N; i++, jai += lda2, icij += 2 )
      {
         Mset( ATL_sZERO, ATL_sZERO, t0_r, t0_i );
         for( l = 0, iali = jai, ialj = jaj; l < K; l++, iali += 2, ialj += 2 )
         { Mmla( A[iali], -A[iali+1], A[ialj], A[ialj+1], t0_r, t0_i ); }
         Mselscal( BETA, C[icij  ] ); Mselscal( BETA, C[icij+1] );
         Mset( C[icij] + ALPHA * t0_r, C[icij+1] + ALPHA * t0_i,
               C[icij], C[icij+1] );
      }
   }
/*
 * End of ATL_crefherkLC
 */
}
开发者ID:certik,项目名称:vendor,代码行数:60,代码来源:ATL_crefherkLC.c

示例2: Mzvscal

void ATL_zrefhpmvL
(
    const int                  N,
    const double               * ALPHA,
    const double               * A,
    const int                  LDA,
    const double               * X,
    const int                  INCX,
    const double               * BETA,
    double                     * Y,
    const int                  INCY
)
{
    /*
     * Purpose
     * =======
     *
     * ATL_zrefhpmvL( ... )
     *
     * <=>
     *
     * ATL_zrefhpmv( AtlasLower, ... )
     *
     * See ATL_zrefhpmv for details.
     *
     * ---------------------------------------------------------------------
     */
    /*
     * .. Local Variables ..
     */
    register double            t0_i, t0_r, t1_i, t1_r;
    int                        i, iaij, ix, iy, j, jaj = 0, jx, jy,
                                                   lda2 = ( LDA << 1 ), incx2 = 2 * INCX,
                                                   incy2 = 2 * INCY;
    /* ..
     * .. Executable Statements ..
     *
     */
    Mzvscal( N, BETA, Y, INCY );

    for( j = 0, jx = 0, jy = 0; j < N; j++, jx += incx2, jy += incy2 )
    {
        Mmul( ALPHA[0], ALPHA[1], X[jx], X[jx+1], t0_r, t0_i );
        Mset( ATL_dZERO, ATL_dZERO, t1_r, t1_i );
        Mset( Y[jy] + A[jaj]*t0_r, Y[jy+1] + A[jaj]*t0_i, Y[jy], Y[jy+1] );
        for( i = j+1,    iaij  = jaj+2, ix  = jx+incx2, iy  = jy+incy2;
                i < N; i++, iaij += 2,     ix += incx2,    iy += incy2 )
        {
            Mmla( A[iaij],  A[iaij+1], t0_r, t0_i, Y[iy], Y[iy+1] );
            Mmla( A[iaij], -A[iaij+1], X[ix], X[ix+1], t1_r, t1_i );
        }
        Mmla( ALPHA[0], ALPHA[1], t1_r, t1_i, Y[jy], Y[jy+1] );
        jaj += lda2;
        lda2 -= 2;
    }
    /*
     * End of ATL_zrefhpmvL
     */
}
开发者ID:numpy,项目名称:numpy-vendor,代码行数:59,代码来源:ATL_zrefhpmvL.c

示例3: Mdelscal

void ATL_zrefherkLN
(
   const int                  N,
   const int                  K,
   const double               ALPHA,
   const double               * A,
   const int                  LDA,
   const double               BETA,
   double                     * C,
   const int                  LDC
)
{
/*
 * Purpose
 * =======
 *
 * ATL_zrefherkLN( ... )
 *
 * <=>
 *
 * ATL_zrefherk( AtlasLower, AtlasNoTrans, ... )
 *
 * See ATL_zrefherk for details.
 *
 * ---------------------------------------------------------------------
 */
/*
 * .. Local Variables ..
 */
   register double            t0_i, t0_r;
   int                        i, iail, iaj, iajl, icij, j, jal, jcj, l,
                              lda2 = ( LDA << 1 ), ldc2 = ( LDC << 1 );
/* ..
 * .. Executable Statements ..
 *
 */
   for( j = 0, iaj = 0, jcj  = 0; j < N; j++, iaj += 2, jcj += ldc2 )
   {
      icij       = ( j << 1 ) + jcj;
      Mdelscal( BETA, C[icij] ); C[icij+1] = ATL_dZERO;
      Mdvscal( ((N-j-1) << 1), BETA, C+icij+2, 1 );

      for( l = 0, iajl = iaj, jal = 0; l < K; l++, iajl += lda2, jal += lda2 )
      {
         Mset( ALPHA * A[iajl], -ALPHA * A[iajl+1], t0_r, t0_i );
         iail = ( j << 1 ) + jal; icij = ( j << 1 ) + jcj;
         Mset( C[icij] + t0_r * A[iail] - t0_i * A[iail+1],
               ATL_dZERO, C[icij], C[icij+1] );
         iail += 2; icij += 2;
         for( i = j+1; i < N; i++, iail += 2, icij += 2 )
         { Mmla( t0_r, t0_i, A[iail], A[iail+1], C[icij], C[icij+1] ); }
      }
   }
/*
 * End of ATL_zrefherkLN
 */
}
开发者ID:AIDman,项目名称:Kaldi,代码行数:57,代码来源:ATL_zrefherkLN.c

示例4: Msvscal

void ATL_crefherkUN
(
   const int                  N,
   const int                  K,
   const float                ALPHA,
   const float                * A,
   const int                  LDA,
   const float                BETA,
   float                      * C,
   const int                  LDC
)
{
/*
 * Purpose
 * =======
 *
 * ATL_crefherkUN( ... )
 *
 * <=>
 *
 * ATL_crefherk( AtlasUpper, AtlasNoTrans, ... )
 *
 * See ATL_crefherk for details.
 *
 * ---------------------------------------------------------------------
 */
/*
 * .. Local Variables ..
 */
   register float             t0_i, t0_r;
   int                        i, iail, iaj, iajl, icij, j, jal, jcj, l,
                              lda2 = ( LDA << 1 ), ldc2 = ( LDC << 1 );
/* ..
 * .. Executable Statements ..
 *
 */
   for( j = 0, iaj = 0, jcj  = 0; j < N; j++, iaj += 2, jcj += ldc2 )
   {
      Msvscal( (j << 1), BETA, C+jcj, 1 );
      icij       = ( j << 1 ) + jcj;
      Mselscal( BETA, C[icij] ); C[icij+1] = ATL_sZERO;

      for( l = 0, iajl = iaj, jal = 0; l < K; l++, iajl += lda2, jal += lda2 )
      {
         Mset( ALPHA * A[iajl], -ALPHA * A[iajl+1], t0_r, t0_i );
         for( i = 0, iail = jal, icij = jcj; i < j; i++, iail += 2, icij += 2 )
         { Mmla( t0_r, t0_i, A[iail], A[iail+1], C[icij], C[icij+1] ); }
         Mset( C[icij] + t0_r * A[iail] - t0_i * A[iail+1], ATL_sZERO,
               C[icij], C[icij+1] );
      }
   }
/*
 * End of ATL_crefherkUN
 */
}
开发者ID:AIDman,项目名称:Kaldi,代码行数:55,代码来源:ATL_crefherkUN.c

示例5: Mset

void ATL_zreftbmvUTU
(
   const int                  N,
   const int                  K,
   const double               * A,
   const int                  LDA,
   double                     * X,
   const int                  INCX
)
{
/*
 * Purpose
 * =======
 *
 * ATL_zreftbmvUTU( ... )
 *
 * <=>
 *
 * ATL_zreftbmv( AtlasUpper, AtlasTrans, AtlasUnit, ... )
 *
 * See ATL_zreftbmv for details.
 *
 * ---------------------------------------------------------------------
 */
/*
 * .. Local Variables ..
 */
   register double            t0_i, t0_r;
   int                        i, i0, iaij, incx2 = 2 * INCX, ix, j, jaj,
                              jx, kx = 0, l, lda2 = ( LDA << 1 );
/* ..
 * .. Executable Statements ..
 *
 */
   for( j = N-1,     jaj  = (N-1)*lda2, jx  = kx+(N-1)*incx2;
        j >= 0; j--, jaj -= lda2,       jx -= incx2 )
   {
      Mset( ATL_dZERO, ATL_dZERO, t0_r, t0_i );
      l       = K - j;
      i0      = ( j - K > 0 ? j - K : 0 );
      for( i = i0,     iaij  = ((l+i0) << 1)+jaj, ix  = kx+i0*incx2;
           i < j; i++, iaij += 2,                 ix += incx2 )
      { Mmla( A[iaij], A[iaij+1], X[ix] , X[ix+1], t0_r, t0_i ); }
      Mset( t0_r + X[jx], t0_i + X[jx+1], t0_r, t0_i );
      Mset( t0_r, t0_i, X[jx], X[jx+1] );
   }
/*
 * End of ATL_zreftbmvUTU
 */
}
开发者ID:AIDman,项目名称:Kaldi,代码行数:50,代码来源:ATL_zreftbmvUTU.c

示例6: Mset

void ATL_zreftpsvUTN
(
    const int                  N,
    const double               * A,
    const int                  LDA,
    double                     * X,
    const int                  INCX
)
{
    /*
     * Purpose
     * =======
     *
     * ATL_zreftpsvUTN( ... )
     *
     * <=>
     *
     * ATL_zreftpsv( AtlasUpper, AtlasTrans, AtlasNonUnit, ... )
     *
     * See ATL_zreftpsv for details.
     *
     * ---------------------------------------------------------------------
     */
    /*
     * .. Local Variables ..
     */
    register double            t0_i, t0_r;
    int                        i, iaij, incx2 = 2 * INCX, ix, j, jaj, jx,
                                        lda2 = ( LDA << 1 );
    /* ..
     * .. Executable Statements ..
     *
     */
    for( j = 0, jaj = 0, jx  = 0; j < N; j++, jx += incx2 )
    {
        Mset( X[jx], X[jx+1], t0_r, t0_i );
        for( i = 0, iaij = jaj, ix = 0; i < j; i++, iaij += 2, ix += incx2 )
        {
            Mmls( A[iaij], A[iaij+1], X[ix], X[ix+1], t0_r, t0_i );
        }
        Mddiv( A[iaij], A[iaij+1], t0_r, t0_i );
        Mset( t0_r, t0_i, X[jx], X[jx+1] );
        jaj += lda2;
        lda2 += 2;
    }
    /*
     * End of ATL_zreftpsvUTN
     */
}
开发者ID:Leobin7,项目名称:Kaldi,代码行数:49,代码来源:ATL_zreftpsvUTN.c

示例7: Mset

void ATL_creftbsvUTN
(
   const int                  N,
   const int                  K,
   const float                * A,
   const int                  LDA,
   float                      * X,
   const int                  INCX
)
{
/*
 * Purpose
 * =======
 *
 * ATL_creftbsvUTN( ... )
 *
 * <=>
 *
 * ATL_creftbsv( AtlasUpper, AtlasTrans, AtlasNonUnit, ... )
 *
 * See ATL_creftbsv for details.
 *
 * ---------------------------------------------------------------------
 */
/*
 * .. Local Variables ..
 */
   register float             t0_i, t0_r;
   int                        i, i0, iaij, incx2 = 2 * INCX, ix, j, jaj,
                              jx, kx = 0, l, lda2 = ( LDA << 1 );
/* ..
 * .. Executable Statements ..
 *
 */
   for( j = 0, jaj = 0, jx = kx; j < N; j++, jaj += lda2, jx += incx2 )
   {
      Mset( X[jx], X[jx+1], t0_r, t0_i );
      l = K - j; i0 = ( j - K > 0 ? j - K : 0 );
      for( i = i0,     iaij  = ((l+i0) << 1)+jaj, ix  = kx;
           i < j; i++, iaij += 2,                 ix += incx2 )
      { Mmls( A[iaij], A[iaij+1], X[ix], X[ix+1], t0_r, t0_i ); }
      Msdiv( A[iaij], A[iaij+1], t0_r, t0_i );
      Mset( t0_r, t0_i, X[jx], X[jx+1] );
      if( j >= K ) { kx += incx2; }
   }
/*
 * End of ATL_creftbsvUTN
 */
}
开发者ID:certik,项目名称:vendor,代码行数:49,代码来源:ATL_creftbsvUTN.c

示例8: Mset

void ATL_creftrsvLTU
(
    const int                  N,
    const float                * A,
    const int                  LDA,
    float                      * X,
    const int                  INCX
)
{
    /*
     * Purpose
     * =======
     *
     * ATL_creftrsvLTU( ... )
     *
     * <=>
     *
     * ATL_creftrsv( AtlasLower, AtlasTrans, AtlasUnit, ... )
     *
     * See ATL_creftrsv for details.
     *
     * ---------------------------------------------------------------------
     */
    /*
     * .. Local Variables ..
     */
    register float             t0_i, t0_r;
    int                        i, iaij, incx2 = 2 * INCX, ix, j, jaj, jx,
                                        ldap12 = ( ( LDA + 1 ) << 1 );
    /* ..
     * .. Executable Statements ..
     *
     */
    for( j = N-1,     jaj  = (N-1)*(ldap12), jx  = (N-1)*incx2;
            j >= 0; j--, jaj -= ldap12,         jx -= incx2 )
    {
        Mset( X[jx], X[jx+1], t0_r, t0_i );
        for( i = j+1,    iaij  = 2+jaj, ix  = jx + incx2;
                i < N; i++, iaij += 2,     ix += incx2 )
        {
            Mmls( A[iaij], A[iaij+1], X[ix], X[ix+1], t0_r, t0_i );
        }
        Mset( t0_r, t0_i, X[jx], X[jx+1] );
    }
    /*
     * End of ATL_creftrsvLTU
     */
}
开发者ID:Leobin7,项目名称:Kaldi,代码行数:48,代码来源:ATL_creftrsvLTU.c

示例9: Mset

void ATL_zreftbsvLHU
(
   const int                  N,
   const int                  K,
   const double               * A,
   const int                  LDA,
   double                     * X,
   const int                  INCX
)
{
/*
 * Purpose
 * =======
 *
 * ATL_zreftbsvLHU( ... )
 *
 * <=>
 *
 * ATL_zreftbsv( AtlasLower, AtlasConjTrans, AtlasUnit, ... )
 *
 * See ATL_zreftbsv for details.
 *
 * ---------------------------------------------------------------------
 */
/*
 * .. Local Variables ..
 */
   register double            t0_i, t0_r;
   int                        i, i1, iaij, incx2 = 2 * INCX, ix, j, jaj,
                              jx, kx = 0, lda2 = ( LDA << 1 );
/* ..
 * .. Executable Statements ..
 *
 */
   for( j = N-1,     jaj  = (N-1)*lda2, jx  = kx+(N-1)*incx2;
        j >= 0; j--, jaj -= lda2,       jx -= incx2 )
   {
      Mset( X[jx], X[jx+1], t0_r, t0_i );
      i1 = ( N - 1 > j + K ? j + K : N - 1 );
      for( i = j+1,      iaij  = 2+jaj, ix  = jx + incx2;
           i <= i1; i++, iaij += 2,     ix += incx2 )
      { Mmls( A[iaij], -A[iaij+1], X[ix], X[ix+1], t0_r, t0_i ); }
      Mset( t0_r, t0_i, X[jx], X[jx+1] );
   }
/*
 * End of ATL_zreftbsvLHU
 */
}
开发者ID:certik,项目名称:vendor,代码行数:48,代码来源:ATL_zreftbsvLHU.c

示例10: Mset

void ATL_crefhprL
(
   const int                  N,
   const float                ALPHA,
   const float                * X,
   const int                  INCX,
   float                      * A,
   const int                  LDA
)
{
/*
 * Purpose
 * =======
 *
 * ATL_crefhprL( ... )
 *
 * <=>
 *
 * ATL_crefhpr( AtlasLower, ... )
 *
 * See ATL_crefhpr for details.
 *
 * ---------------------------------------------------------------------
 */
/*
 * .. Local Variables ..
 */
   register float             t0_i, t0_r;
   int                        i, jaj, iaij, ix, j, jx, lda2 = ( LDA << 1 ),
                              incx2 = 2 * INCX;
/* ..
 * .. Executable Statements ..
 *
 */
   for( j = 0, jaj = 0, jx = 0; j < N; j++, jx += incx2 )
   {
      Mset( ALPHA * X[jx], -ALPHA * X[jx+1], t0_r, t0_i );
      Mset( A[jaj] + X[jx] * t0_r - X[jx+1] * t0_i, ATL_sZERO,
            A[jaj], A[jaj+1] );
      for( i = j+1, iaij = jaj+2, ix = jx+incx2; i < N;
           i++, iaij += 2, ix += incx2 )
      { Mmla( X[ix], X[ix+1], t0_r, t0_i, A[iaij], A[iaij+1] ); }
      jaj += lda2; lda2 -= 2;
   }
/*
 * End of ATL_crefhprL
 */
}
开发者ID:AIDman,项目名称:Kaldi,代码行数:48,代码来源:ATL_crefhprL.c

示例11: Mset

void ATL_zrefherL
(
   const int                  N,
   const double               ALPHA,
   const double               * X,
   const int                  INCX,
   double                     * A,
   const int                  LDA
)
{
/*
 * Purpose
 * =======
 *
 * ATL_zrefherL( ... )
 *
 * <=>
 *
 * ATL_zrefher( AtlasLower, ... )
 *
 * See ATL_zrefher for details.
 *
 * ---------------------------------------------------------------------
 */
/*
 * .. Local Variables ..
 */
   register double            t0_i, t0_r;
   int                        i, iaij, incx2 = 2 * INCX, ix, j, jaj, jx,
                              ldap12 = ( LDA + 1 ) << 1;
/* ..
 * .. Executable Statements ..
 *
 */
   for( j = 0, jaj = 0, jx = 0; j < N; j++, jaj += ldap12, jx += incx2 )
   {
      Mset( ALPHA * X[jx], -ALPHA * X[jx+1], t0_r, t0_i );
      Mset( A[jaj] + X[jx] * t0_r - X[jx+1] * t0_i, ATL_dZERO,
            A[jaj], A[jaj+1] );
      for( i = j+1, iaij = jaj+2, ix = jx+incx2; i < N;
           i++, iaij += 2, ix += incx2 )
      { Mmla( X[ix], X[ix+1], t0_r, t0_i, A[iaij], A[iaij+1] ); }
   }
/*
 * End of ATL_zrefherL
 */
}
开发者ID:certik,项目名称:vendor,代码行数:47,代码来源:ATL_zrefherL.c

示例12: Mset

void ATL_creftpsvLHN
(
   const int                  N,
   const float                * A,
   const int                  LDA,
   float                      * X,
   const int                  INCX
)
{
/*
 * Purpose
 * =======
 *
 * ATL_creftpsvLHN( ... )
 *
 * <=>
 *
 * ATL_creftpsv( AtlasLower, AtlasConjTrans, AtlasNonUnit, ... )
 *
 * See ATL_creftpsv for details.
 *
 * ---------------------------------------------------------------------
 */
/*
 * .. Local Variables ..
 */
   register float             t0_i, t0_r;
   int                        i, iaij, incx2 = 2 * INCX, ix, j, jaj, jx,
                              lda2 = ( ( LDA - N + 1 ) << 1 );
/* ..
 * .. Executable Statements ..
 *
 */
   for( j = N-1,     jaj = (((LDA+1)*(N-1)) << 1) - (N-1)*N, jx  = (N-1)*incx2;
        j >= 0; j--,                                         jx -= incx2 )
   {
      Mset( X[jx], X[jx+1], t0_r, t0_i );
      for( i = j+1,    iaij  = jaj+2, ix  = jx + incx2;
           i < N; i++, iaij += 2,     ix += incx2 )
      { Mmls( A[iaij], -A[iaij+1], X[ix], X[ix+1], t0_r, t0_i ); }
      Msdiv( A[jaj], -A[jaj+1], t0_r, t0_i );
      Mset( t0_r, t0_i, X[jx], X[jx+1] ); lda2 += 2; jaj -= lda2;
   }
/*
 * End of ATL_creftpsvLHN
 */
}
开发者ID:AIDman,项目名称:Kaldi,代码行数:47,代码来源:ATL_creftpsvLHN.c

示例13: Mset

void ATL_creftbmvLTU
(
   const int                  N,
   const int                  K,
   const float                * A,
   const int                  LDA,
   float                      * X,
   const int                  INCX
)
{
/*
 * Purpose
 * =======
 *
 * ATL_creftbmvLTU( ... )
 *
 * <=>
 *
 * ATL_creftbmv( AtlasLower, AtlasTrans, AtlasUnit, ... )
 *
 * See ATL_creftbmv for details.
 *
 * ---------------------------------------------------------------------
 */
/*
 * .. Local Variables ..
 */
   register float             t0_i, t0_r;
   int                        i, i1, iaij, incx2 = 2 * INCX, ix, j, jaj,
                              jx, kx = 0, lda2 = ( LDA << 1 );
/* ..
 * .. Executable Statements ..
 *
 */
   for( j = 0, jaj = 0, jx = kx; j < N; j++, jaj += lda2, jx += incx2 )
   {
      Mset( X[jx], X[jx+1], t0_r, t0_i );
      i1 = ( N - 1 > j + K ? j + K : N - 1 );
      for( i = j+1,      iaij  = 2+jaj, ix  = jx + incx2;
           i <= i1; i++, iaij += 2,     ix += incx2 )
      { Mmla( A[iaij], A[iaij+1], X[ix] , X[ix+1], t0_r, t0_i ); }
      Mset( t0_r, t0_i, X[jx], X[jx+1] );
   }
/*
 * End of ATL_creftbmvLTU
 */
}
开发者ID:GorgonCryoEM,项目名称:Gorgon-CVS,代码行数:47,代码来源:ATL_creftbmvLTU.c

示例14: Mset

void ATL_zreftrmvUHN
(
   const int                  N,
   const double               * A,
   const int                  LDA,
   double                     * X,
   const int                  INCX
)
{
/*
 * Purpose
 * =======
 *
 * ATL_zreftrmvUHN( ... )
 *
 * <=>
 *
 * ATL_zreftrmv( AtlasUpper, AtlasConjTrans, AtlasNonUnit, ... )
 *
 * See ATL_zreftrmv for details.
 *
 * ---------------------------------------------------------------------
 */
/*
 * .. Local Variables ..
 */
   register double            t0_i, t0_r;
   int                        i, iaij, incx2 = 2 * INCX, ix, j, jaj, jx,
                              lda2 = ( LDA << 1 );
/* ..
 * .. Executable Statements ..
 *
 */
   for( j = N-1,     jaj  = (N-1)*lda2, jx  = (N-1)*incx2;
        j >= 0; j--, jaj -= lda2,       jx -= incx2 )
   {
      Mset( ATL_dZERO, ATL_dZERO, t0_r, t0_i );
      for( i = 0, iaij = jaj, ix = 0; i < j; i++, iaij += 2, ix += incx2 )
      { Mmla( A[iaij], -A[iaij+1], X[ix] , X[ix+1], t0_r, t0_i ); }
      Mmla( A[iaij], -A[iaij+1], X[jx] , X[jx+1], t0_r, t0_i );
      Mset( t0_r, t0_i, X[jx], X[jx+1] );
   }
/*
 * End of ATL_zreftrmvUHN
 */
}
开发者ID:GorgonCryoEM,项目名称:Gorgon-CVS,代码行数:46,代码来源:ATL_zreftrmvUHN.c

示例15: Mset

void ATL_creftpmvUHU
(
   const int                  N,
   const float                * A,
   const int                  LDA,
   float                      * X,
   const int                  INCX
)
{
/*
 * Purpose
 * =======
 *
 * ATL_creftpmvUHU( ... )
 *
 * <=>
 *
 * ATL_creftpmv( AtlasUpper, AtlasConjTrans, AtlasUnit, ... )
 *
 * See ATL_creftpmv for details.
 *
 * ---------------------------------------------------------------------
 */
/*
 * .. Local Variables ..
 */
   register float             t0_i, t0_r;
   int                        i, iaij, incx2 = 2 * INCX, ix, j, jaj, jx,
                              lda2 = ( ( LDA + N - 1 ) << 1 );
/* ..
 * .. Executable Statements ..
 *
 */
   for( j = N-1, jaj = (N-1)*(2*LDA+N-2), jx  = (N-1)*incx2;
        j >= 0; j--,                      jx -= incx2 )
   {
      Mset( ATL_sZERO, ATL_sZERO, t0_r, t0_i );
      for( i = 0, iaij = jaj, ix  = 0; i < j; i++, iaij += 2, ix += incx2 )
      { Mmla( A[iaij], -A[iaij+1], X[ix] , X[ix+1], t0_r, t0_i ); }
      Mset( t0_r + X[jx], t0_i + X[jx+1], t0_r, t0_i );
      Mset( t0_r, t0_i, X[jx], X[jx+1] ); lda2 -= 2; jaj -= lda2;
   }
/*
 * End of ATL_creftpmvUHU
 */
}
开发者ID:certik,项目名称:vendor,代码行数:46,代码来源:ATL_creftpmvUHU.c


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