libflame  12600
Functions
bl1_copyv.c File Reference

(r12600)

Functions

void bl1_icopyv (conj1_t conj, int m, int *x, int incx, int *y, int incy)
void bl1_scopyv (conj1_t conj, int m, float *x, int incx, float *y, int incy)
void bl1_dcopyv (conj1_t conj, int m, double *x, int incx, double *y, int incy)
void bl1_ccopyv (conj1_t conj, int m, scomplex *x, int incx, scomplex *y, int incy)
void bl1_zcopyv (conj1_t conj, int m, dcomplex *x, int incx, dcomplex *y, int incy)
void bl1_sdcopyv (conj1_t conj, int m, float *x, int incx, double *y, int incy)
void bl1_dscopyv (conj1_t conj, int m, double *x, int incx, float *y, int incy)
void bl1_sccopyv (conj1_t conj, int m, float *x, int incx, scomplex *y, int incy)
void bl1_cscopyv (conj1_t conj, int m, scomplex *x, int incx, float *y, int incy)
void bl1_szcopyv (conj1_t conj, int m, float *x, int incx, dcomplex *y, int incy)
void bl1_zscopyv (conj1_t conj, int m, dcomplex *x, int incx, float *y, int incy)
void bl1_dccopyv (conj1_t conj, int m, double *x, int incx, scomplex *y, int incy)
void bl1_cdcopyv (conj1_t conj, int m, scomplex *x, int incx, double *y, int incy)
void bl1_dzcopyv (conj1_t conj, int m, double *x, int incx, dcomplex *y, int incy)
void bl1_zdcopyv (conj1_t conj, int m, dcomplex *x, int incx, double *y, int incy)
void bl1_czcopyv (conj1_t conj, int m, scomplex *x, int incx, dcomplex *y, int incy)
void bl1_zccopyv (conj1_t conj, int m, dcomplex *x, int incx, scomplex *y, int incy)

Function Documentation

void bl1_ccopyv ( conj1_t  conj,
int  m,
scomplex x,
int  incx,
scomplex y,
int  incy 
)
void bl1_cdcopyv ( conj1_t  conj,
int  m,
scomplex x,
int  incx,
double *  y,
int  incy 
)

References bl1_zero_dim1(), and scomplex::real.

Referenced by bl1_cdcopymr(), bl1_cdcopymrt(), and bl1_cdcopymt().

{
    scomplex* chi;
    double*   psi;
    int       i;

    // Return early if possible.
    if ( bl1_zero_dim1( m ) ) return;

    // Initialize pointers.
    chi = x;
    psi = y;

    for ( i = 0; i < m; ++i )
    {
        *psi = chi->real;

        chi += incx;
        psi += incy;
    }
}
void bl1_cscopyv ( conj1_t  conj,
int  m,
scomplex x,
int  incx,
float *  y,
int  incy 
)

References bl1_zero_dim1(), and scomplex::real.

Referenced by bl1_cscopymr(), bl1_cscopymrt(), and bl1_cscopymt().

{
    scomplex* chi;
    float*    psi;
    int       i;

    // Return early if possible.
    if ( bl1_zero_dim1( m ) ) return;

    // Initialize pointers.
    chi = x;
    psi = y;

    for ( i = 0; i < m; ++i )
    {
        *psi = chi->real;

        chi += incx;
        psi += incy;
    }
}
void bl1_czcopyv ( conj1_t  conj,
int  m,
scomplex x,
int  incx,
dcomplex y,
int  incy 
)

References bl1_is_conj(), bl1_zconjv(), bl1_zero_dim1(), scomplex::imag, dcomplex::imag, scomplex::real, and dcomplex::real.

Referenced by bl1_czcopymr(), bl1_czcopymrt(), and bl1_czcopymt().

{
    scomplex* chi;
    dcomplex* psi;
    int       i;

    // Return early if possible.
    if ( bl1_zero_dim1( m ) ) return;

    // Initialize pointers.
    chi = x;
    psi = y;

    for ( i = 0; i < m; ++i )
    {
        psi->real = chi->real;
        psi->imag = chi->imag;

        chi += incx;
        psi += incy;
    }

    if ( bl1_is_conj( conj ) )
        bl1_zconjv( m,
                    y, incy );
}
void bl1_dccopyv ( conj1_t  conj,
int  m,
double *  x,
int  incx,
scomplex y,
int  incy 
)

References bl1_zero_dim1(), scomplex::imag, and scomplex::real.

Referenced by bl1_dccopymr(), bl1_dccopymrt(), and bl1_dccopymt().

{
    double*   chi;
    scomplex* psi;
    int       i;

    // Return early if possible.
    if ( bl1_zero_dim1( m ) ) return;

    // Initialize pointers.
    chi = x;
    psi = y;

    for ( i = 0; i < m; ++i )
    {
        psi->real = *chi;
        psi->imag = 0.0F;

        chi += incx;
        psi += incy;
    }
}
void bl1_dcopyv ( conj1_t  conj,
int  m,
double *  x,
int  incx,
double *  y,
int  incy 
)
void bl1_dscopyv ( conj1_t  conj,
int  m,
double *  x,
int  incx,
float *  y,
int  incy 
)

References bl1_zero_dim1().

Referenced by bl1_dscopymr(), bl1_dscopymrt(), and bl1_dscopymt().

{
    double*   chi;
    float*    psi;
    int       i;

    // Return early if possible.
    if ( bl1_zero_dim1( m ) ) return;

    // Initialize pointers.
    chi = x;
    psi = y;

    for ( i = 0; i < m; ++i )
    {
        *psi = *chi;

        chi += incx;
        psi += incy;
    }
}
void bl1_dzcopyv ( conj1_t  conj,
int  m,
double *  x,
int  incx,
dcomplex y,
int  incy 
)

References bl1_zero_dim1(), dcomplex::imag, and dcomplex::real.

Referenced by bl1_dzcopymr(), bl1_dzcopymrt(), and bl1_dzcopymt().

{
    double*   chi;
    dcomplex* psi;
    int       i;

    // Return early if possible.
    if ( bl1_zero_dim1( m ) ) return;

    // Initialize pointers.
    chi = x;
    psi = y;

    for ( i = 0; i < m; ++i )
    {
        psi->real = *chi;
        psi->imag = 0.0;

        chi += incx;
        psi += incy;
    }
}
void bl1_icopyv ( conj1_t  conj,
int  m,
int *  x,
int  incx,
int *  y,
int  incy 
)

References bl1_zero_dim1().

Referenced by bl1_icopymt().

{
    int*      chi;
    int*      psi;
    int       i;

    // Return early if possible.
    if ( bl1_zero_dim1( m ) ) return;

    // Initialize pointers.
    chi = x;
    psi = y;

    for ( i = 0; i < m; ++i )
    {
        *psi = *chi;

        chi += incx;
        psi += incy;
    }
}
void bl1_sccopyv ( conj1_t  conj,
int  m,
float *  x,
int  incx,
scomplex y,
int  incy 
)

References bl1_zero_dim1(), scomplex::imag, and scomplex::real.

Referenced by bl1_sccopymr(), bl1_sccopymrt(), and bl1_sccopymt().

{
    float*    chi;
    scomplex* psi;
    int       i;

    // Return early if possible.
    if ( bl1_zero_dim1( m ) ) return;

    // Initialize pointers.
    chi = x;
    psi = y;

    for ( i = 0; i < m; ++i )
    {
        psi->real = *chi;
        psi->imag = 0.0F;

        chi += incx;
        psi += incy;
    }
}
void bl1_scopyv ( conj1_t  conj,
int  m,
float *  x,
int  incx,
float *  y,
int  incy 
)
void bl1_sdcopyv ( conj1_t  conj,
int  m,
float *  x,
int  incx,
double *  y,
int  incy 
)

References bl1_zero_dim1().

Referenced by bl1_sdcopymr(), bl1_sdcopymrt(), and bl1_sdcopymt().

{
    float*    chi;
    double*   psi;
    int       i;

    // Return early if possible.
    if ( bl1_zero_dim1( m ) ) return;

    // Initialize pointers.
    chi = x;
    psi = y;

    for ( i = 0; i < m; ++i )
    {
        *psi = *chi;

        chi += incx;
        psi += incy;
    }
}
void bl1_szcopyv ( conj1_t  conj,
int  m,
float *  x,
int  incx,
dcomplex y,
int  incy 
)

References bl1_zero_dim1(), dcomplex::imag, and dcomplex::real.

Referenced by bl1_szcopymr(), bl1_szcopymrt(), and bl1_szcopymt().

{
    float*    chi;
    dcomplex* psi;
    int       i;

    // Return early if possible.
    if ( bl1_zero_dim1( m ) ) return;

    // Initialize pointers.
    chi = x;
    psi = y;

    for ( i = 0; i < m; ++i )
    {
        psi->real = *chi;
        psi->imag = 0.0;

        chi += incx;
        psi += incy;
    }
}
void bl1_zccopyv ( conj1_t  conj,
int  m,
dcomplex x,
int  incx,
scomplex y,
int  incy 
)

References bl1_cconjv(), bl1_is_conj(), bl1_zero_dim1(), scomplex::imag, dcomplex::imag, scomplex::real, and dcomplex::real.

Referenced by bl1_zccopymr(), bl1_zccopymrt(), and bl1_zccopymt().

{
    dcomplex* chi;
    scomplex* psi;
    int       i;

    // Return early if possible.
    if ( bl1_zero_dim1( m ) ) return;

    // Initialize pointers.
    chi = x;
    psi = y;

    for ( i = 0; i < m; ++i )
    {
        psi->real = chi->real;
        psi->imag = chi->imag;

        chi += incx;
        psi += incy;
    }

    if ( bl1_is_conj( conj ) )
        bl1_cconjv( m,
                    y, incy );
}
void bl1_zcopyv ( conj1_t  conj,
int  m,
dcomplex x,
int  incx,
dcomplex y,
int  incy 
)
void bl1_zdcopyv ( conj1_t  conj,
int  m,
dcomplex x,
int  incx,
double *  y,
int  incy 
)

References bl1_zero_dim1(), and dcomplex::real.

Referenced by bl1_zdcopymr(), bl1_zdcopymrt(), and bl1_zdcopymt().

{
    dcomplex* chi;
    double*   psi;
    int       i;

    // Return early if possible.
    if ( bl1_zero_dim1( m ) ) return;

    // Initialize pointers.
    chi = x;
    psi = y;

    for ( i = 0; i < m; ++i )
    {
        *psi = chi->real;

        chi += incx;
        psi += incy;
    }
}
void bl1_zscopyv ( conj1_t  conj,
int  m,
dcomplex x,
int  incx,
float *  y,
int  incy 
)

References bl1_zero_dim1(), and dcomplex::real.

Referenced by bl1_zscopymr(), bl1_zscopymrt(), and bl1_zscopymt().

{
    dcomplex* chi;
    float*    psi;
    int       i;

    // Return early if possible.
    if ( bl1_zero_dim1( m ) ) return;

    // Initialize pointers.
    chi = x;
    psi = y;

    for ( i = 0; i < m; ++i )
    {
        *psi = chi->real;

        chi += incx;
        psi += incy;
    }
}