/* @cond INNERDOC */ /*! @file @brief Performance kernels dispatching code, for each type, submatrix size, operation. For block coordinates format. Kernels unrolled, with no loops, for only user-specified blockings. */ /* Copyright (C) 2008-2026 Michele Martone This file is part of librsb. librsb is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. librsb is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with librsb; see the file COPYING. If not, see . */ /* The code in this file was generated automatically by an M4 script. It is not meant to be used as an API (Application Programming Interface). p.s.: right now, only row major matrix access is considered. */ /*! @file @brief Performance kernels dispatching code, for each type, submatrix size, operation. For block coordinates format. Kernels unrolled, with no loops, for only user-specified blockings. */ /* Copyright (C) 2008-2026 Michele Martone This file is part of librsb. librsb is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. librsb is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with librsb; see the file COPYING. If not, see . */ /* The code in this file was generated automatically by an M4 script. It is not meant to be used as an API (Application Programming Interface). p.s.: right now, only row major matrix access is considered. */ #include "rsb.h" #include "rsb_common.h" #include "rsb_internals.h" #pragma GCC visibility push(hidden) rsb_err_t rsb__BCOR_spmv_uaua_double_C__tN_r1_c1_uu_sU_dE_uG(const double * restrict VA, const double * restrict rhs, double * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow y + {A} \cdot x, where A \neq A^T. \f$ * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type double, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr, *JA=(const rsb_coo_idx_t*)bindx; register rsb_nnz_idx_t n=0; { for(n=0;n+30) ;--ii) { double ax; ax=0; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii && j!=i))) break; ax += VA[n]*out[j*1]; } if(n==nnz || VA[n]==((double)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; out[ii*1]=(out[ii*1]-ax)/VA[n]; --n; } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_double_C__tN_r1_c1_uu_sU_dE_uU\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_uxua_double_C__tN_r1_c1_uu_sU_dE_uL(const double * restrict VA, const double * rhs, double * out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow {A}^{-1} \cdot x, where A \neq A^T. \f$ * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type double, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr, *JA=(const rsb_coo_idx_t*)bindx; register rsb_nnz_idx_t n=0; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { double ax; ax=0; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii && j!=i))) break; ax += VA[n]*out[j*1]; } if(n==nnz || VA[n]==((double)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; out[ii*1]=(out[ii*1]-ax)/VA[n]; --n; } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_double_H__tN_r1_c1_uu_sU_dE_uU\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_uxua_double_H__tN_r1_c1_uu_sU_dE_uL(const double * restrict VA, const double * rhs, double * out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow {A}^{-1} \cdot x, where A \neq A^T. \f$ * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type double, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_half_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((double)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n++; out[ii*1]/=aa; ax=out[ii*1]; for(;RSB_LIKELY(n0) ;--ii) { double ax; double aa; if(n>=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((double)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n--; out[ii*1]/=aa; ax=out[ii*1]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*1]-=VA[n]*ax; } out[ii*1]=(out[ii*1]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_double_C__tT_r1_c1_uu_sU_dE_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_uxua_double_H__tT_r1_c1_uu_sU_dE_uU(const double * restrict VA, const double * rhs, double * out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow {A^T}^{-1} \cdot x, where A \neq A^T. \f$ * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type double, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_half_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((double)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n++; out[ii*1]/=aa; ax=out[ii*1]; for(;RSB_LIKELY(n0) ;--ii) { double ax; double aa; if(n>=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((double)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n--; out[ii*1]/=aa; ax=out[ii*1]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*1]-=VA[n]*ax; } out[ii*1]=(out[ii*1]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_double_H__tT_r1_c1_uu_sU_dE_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_uxua_double_C__tC_r1_c1_uu_sU_dE_uU(const double * restrict VA, const double * rhs, double * out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow {A^H}^{-1} \cdot x, where A \neq A^T. \f$ * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type double, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr, *JA=(const rsb_coo_idx_t*)bindx; register rsb_nnz_idx_t n=0; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((double)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n++; out[ii*1]/=aa; ax=out[ii*1]; for(;RSB_LIKELY(n0) ;--ii) { double ax; double aa; if(n>=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((double)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n--; out[ii*1]/=aa; ax=out[ii*1]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*1]-=VA[n]*ax; } out[ii*1]=(out[ii*1]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_double_C__tC_r1_c1_uu_sU_dE_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_uxua_double_H__tC_r1_c1_uu_sU_dE_uU(const double * restrict VA, const double * rhs, double * out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow {A^H}^{-1} \cdot x, where A \neq A^T. \f$ * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type double, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_half_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((double)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n++; out[ii*1]/=aa; ax=out[ii*1]; for(;RSB_LIKELY(n0) ;--ii) { double ax; double aa; if(n>=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((double)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n--; out[ii*1]/=aa; ax=out[ii*1]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*1]-=VA[n]*ax; } out[ii*1]=(out[ii*1]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_double_H__tC_r1_c1_uu_sU_dE_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_uxua_double_C__tN_r1_c1_uu_sU_dI_uU(const double * restrict VA, const double * rhs, double * out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow {A}^{-1} \cdot x, where A \neq A^T. \f$ * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type double, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr, *JA=(const rsb_coo_idx_t*)bindx; register rsb_nnz_idx_t n=0; rsb_coo_idx_t ii; for(n=nnz-1,ii=Mdim-1;RSB_LIKELY(ii+1>0) ;--ii) { double ax; ax=0; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii && j!=i))) break; ax += VA[n]*out[j*1]; } out[ii*1]=(out[ii*1]-ax); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_double_C__tN_r1_c1_uu_sU_dI_uU\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_uxua_double_C__tN_r1_c1_uu_sU_dI_uL(const double * restrict VA, const double * rhs, double * out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow {A}^{-1} \cdot x, where A \neq A^T. \f$ * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type double, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr, *JA=(const rsb_coo_idx_t*)bindx; register rsb_nnz_idx_t n=0; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { double ax; ax=0; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii && j!=i))) break; ax += VA[n]*out[j*1]; } out[ii*1]=(out[ii*1]-ax); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_double_H__tN_r1_c1_uu_sU_dI_uU\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_uxua_double_H__tN_r1_c1_uu_sU_dI_uL(const double * restrict VA, const double * rhs, double * out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow {A}^{-1} \cdot x, where A \neq A^T. \f$ * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type double, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_half_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { double ax; ax=out[ii*1]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*1]-=VA[n]*ax; } out[ii*1]=(out[ii*1]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_double_C__tT_r1_c1_uu_sU_dI_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_uxua_double_H__tT_r1_c1_uu_sU_dI_uU(const double * restrict VA, const double * rhs, double * out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow {A^T}^{-1} \cdot x, where A \neq A^T. \f$ * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type double, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_half_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { double ax; ax=out[ii*1]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*1]-=VA[n]*ax; } out[ii*1]=(out[ii*1]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_double_H__tT_r1_c1_uu_sU_dI_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_uxua_double_C__tC_r1_c1_uu_sU_dI_uU(const double * restrict VA, const double * rhs, double * out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow {A^H}^{-1} \cdot x, where A \neq A^T. \f$ * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type double, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr, *JA=(const rsb_coo_idx_t*)bindx; register rsb_nnz_idx_t n=0; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { double ax; ax=out[ii*1]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*1]-=VA[n]*ax; } out[ii*1]=(out[ii*1]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_double_C__tC_r1_c1_uu_sU_dI_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_uxua_double_H__tC_r1_c1_uu_sU_dI_uU(const double * restrict VA, const double * rhs, double * out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow {A^H}^{-1} \cdot x, where A \neq A^T. \f$ * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type double, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_half_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { double ax; ax=out[ii*1]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*1]-=VA[n]*ax; } out[ii*1]=(out[ii*1]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_double_H__tC_r1_c1_uu_sU_dI_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spmv_sxsa_double_C__tN_r1_c1_uu_sU_dE_uG(const double * restrict VA, const double * restrict rhs, double * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const double * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow \beta \cdot y + \alpha \cdot {A} \cdot x, where A \neq A^T. \f$ * with incx and incy as x and y vector strides * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type double, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr, *JA=(const rsb_coo_idx_t*)bindx; register rsb_nnz_idx_t n=0; const double alpha=*alphap; { for(n=0;n+30) ;--ii) { double ax; ax=0; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii && j!=i))) break; ax += VA[n]*out[j*incy]; } if(n==nnz || VA[n]==((double)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; out[ii*incy]=((alpha)*out[ii*incy]-ax)/VA[n]; --n; } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_double_C__tN_r1_c1_uu_sU_dE_uU\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_sxsx_double_C__tN_r1_c1_uu_sU_dE_uL(const double * restrict VA, const double * restrict rhs, double * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const double * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type double, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr, *JA=(const rsb_coo_idx_t*)bindx; register rsb_nnz_idx_t n=0; const double alpha=*alphap; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { double ax; ax=0; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii && j!=i))) break; ax += VA[n]*out[j*incy]; } if(n==nnz || VA[n]==((double)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; out[ii*incy]=((alpha)*out[ii*incy]-ax)/VA[n]; --n; } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_double_H__tN_r1_c1_uu_sU_dE_uU\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_sxsx_double_H__tN_r1_c1_uu_sU_dE_uL(const double * restrict VA, const double * restrict rhs, double * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const double * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type double, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; const double alpha=*alphap; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((double)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n++; out[ii*incy]/=aa; ax=out[ii*incy]; for(;RSB_LIKELY(n0) ;--ii) { double ax; double aa; if(n>=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((double)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n--; out[ii*incy]/=aa; ax=out[ii*incy]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*incy]-=VA[n]*ax; } out[ii*incy]=((alpha)*out[ii*incy]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_double_C__tT_r1_c1_uu_sU_dE_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_sxsx_double_H__tT_r1_c1_uu_sU_dE_uU(const double * restrict VA, const double * restrict rhs, double * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const double * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type double, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; const double alpha=*alphap; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((double)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n++; out[ii*incy]/=aa; ax=out[ii*incy]; for(;RSB_LIKELY(n0) ;--ii) { double ax; double aa; if(n>=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((double)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n--; out[ii*incy]/=aa; ax=out[ii*incy]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*incy]-=VA[n]*ax; } out[ii*incy]=((alpha)*out[ii*incy]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_double_H__tT_r1_c1_uu_sU_dE_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_sxsx_double_C__tC_r1_c1_uu_sU_dE_uU(const double * restrict VA, const double * restrict rhs, double * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const double * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type double, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr, *JA=(const rsb_coo_idx_t*)bindx; register rsb_nnz_idx_t n=0; const double alpha=*alphap; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((double)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n++; out[ii*incy]/=aa; ax=out[ii*incy]; for(;RSB_LIKELY(n0) ;--ii) { double ax; double aa; if(n>=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((double)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n--; out[ii*incy]/=aa; ax=out[ii*incy]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*incy]-=VA[n]*ax; } out[ii*incy]=((alpha)*out[ii*incy]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_double_C__tC_r1_c1_uu_sU_dE_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_sxsx_double_H__tC_r1_c1_uu_sU_dE_uU(const double * restrict VA, const double * restrict rhs, double * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const double * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type double, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; const double alpha=*alphap; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((double)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n++; out[ii*incy]/=aa; ax=out[ii*incy]; for(;RSB_LIKELY(n0) ;--ii) { double ax; double aa; if(n>=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((double)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n--; out[ii*incy]/=aa; ax=out[ii*incy]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*incy]-=VA[n]*ax; } out[ii*incy]=((alpha)*out[ii*incy]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_double_H__tC_r1_c1_uu_sU_dE_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_sxsx_double_C__tN_r1_c1_uu_sU_dI_uU(const double * restrict VA, const double * restrict rhs, double * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const double * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type double, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr, *JA=(const rsb_coo_idx_t*)bindx; register rsb_nnz_idx_t n=0; const double alpha=*alphap; rsb_coo_idx_t ii; for(n=nnz-1,ii=Mdim-1;RSB_LIKELY(ii+1>0) ;--ii) { double ax; ax=0; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii && j!=i))) break; ax += VA[n]*out[j*incy]; } out[ii*incy]=((alpha)*out[ii*incy]-ax); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_double_C__tN_r1_c1_uu_sU_dI_uU\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_sxsx_double_C__tN_r1_c1_uu_sU_dI_uL(const double * restrict VA, const double * restrict rhs, double * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const double * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type double, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr, *JA=(const rsb_coo_idx_t*)bindx; register rsb_nnz_idx_t n=0; const double alpha=*alphap; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { double ax; ax=0; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii && j!=i))) break; ax += VA[n]*out[j*incy]; } out[ii*incy]=((alpha)*out[ii*incy]-ax); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_double_H__tN_r1_c1_uu_sU_dI_uU\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_sxsx_double_H__tN_r1_c1_uu_sU_dI_uL(const double * restrict VA, const double * restrict rhs, double * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const double * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type double, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; const double alpha=*alphap; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { double ax; ax=out[ii*incy]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*incy]-=VA[n]*ax; } out[ii*incy]=((alpha)*out[ii*incy]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_double_C__tT_r1_c1_uu_sU_dI_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_sxsx_double_H__tT_r1_c1_uu_sU_dI_uU(const double * restrict VA, const double * restrict rhs, double * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const double * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type double, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; const double alpha=*alphap; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { double ax; ax=out[ii*incy]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*incy]-=VA[n]*ax; } out[ii*incy]=((alpha)*out[ii*incy]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_double_H__tT_r1_c1_uu_sU_dI_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_sxsx_double_C__tC_r1_c1_uu_sU_dI_uU(const double * restrict VA, const double * restrict rhs, double * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const double * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type double, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr, *JA=(const rsb_coo_idx_t*)bindx; register rsb_nnz_idx_t n=0; const double alpha=*alphap; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { double ax; ax=out[ii*incy]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*incy]-=VA[n]*ax; } out[ii*incy]=((alpha)*out[ii*incy]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_double_C__tC_r1_c1_uu_sU_dI_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_sxsx_double_H__tC_r1_c1_uu_sU_dI_uU(const double * restrict VA, const double * restrict rhs, double * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const double * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type double, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; const double alpha=*alphap; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { double ax; ax=out[ii*incy]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*incy]-=VA[n]*ax; } out[ii*incy]=((alpha)*out[ii*incy]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_double_H__tC_r1_c1_uu_sU_dI_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_infty_norm_double_C__tN_r1_c1_uu_sU_dE_uG(const double * VA, double * row_sums, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$ \|A\|_{\infty} \f$ (or rather, \f$ row\_sums_i \leftarrow \sum_{j=0}^{mdim} A_{ij} ), where A \neq A^T.\f$ * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type double, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr; register rsb_coo_idx_t i=0; register rsb_nnz_idx_t n=0; for(n=0;RSB_LIKELY(n0) ;--ii) { float ax; ax=0; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii && j!=i))) break; ax += VA[n]*out[j*1]; } if(n==nnz || VA[n]==((float)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; out[ii*1]=(out[ii*1]-ax)/VA[n]; --n; } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_float_C__tN_r1_c1_uu_sU_dE_uU\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_uxua_float_C__tN_r1_c1_uu_sU_dE_uL(const float * restrict VA, const float * rhs, float * out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow {A}^{-1} \cdot x, where A \neq A^T. \f$ * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type float, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr, *JA=(const rsb_coo_idx_t*)bindx; register rsb_nnz_idx_t n=0; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { float ax; ax=0; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii && j!=i))) break; ax += VA[n]*out[j*1]; } if(n==nnz || VA[n]==((float)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; out[ii*1]=(out[ii*1]-ax)/VA[n]; --n; } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_float_H__tN_r1_c1_uu_sU_dE_uU\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_uxua_float_H__tN_r1_c1_uu_sU_dE_uL(const float * restrict VA, const float * rhs, float * out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow {A}^{-1} \cdot x, where A \neq A^T. \f$ * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type float, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_half_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((float)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n++; out[ii*1]/=aa; ax=out[ii*1]; for(;RSB_LIKELY(n0) ;--ii) { float ax; float aa; if(n>=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((float)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n--; out[ii*1]/=aa; ax=out[ii*1]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*1]-=VA[n]*ax; } out[ii*1]=(out[ii*1]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_float_C__tT_r1_c1_uu_sU_dE_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_uxua_float_H__tT_r1_c1_uu_sU_dE_uU(const float * restrict VA, const float * rhs, float * out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow {A^T}^{-1} \cdot x, where A \neq A^T. \f$ * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type float, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_half_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((float)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n++; out[ii*1]/=aa; ax=out[ii*1]; for(;RSB_LIKELY(n0) ;--ii) { float ax; float aa; if(n>=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((float)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n--; out[ii*1]/=aa; ax=out[ii*1]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*1]-=VA[n]*ax; } out[ii*1]=(out[ii*1]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_float_H__tT_r1_c1_uu_sU_dE_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_uxua_float_C__tC_r1_c1_uu_sU_dE_uU(const float * restrict VA, const float * rhs, float * out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow {A^H}^{-1} \cdot x, where A \neq A^T. \f$ * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type float, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr, *JA=(const rsb_coo_idx_t*)bindx; register rsb_nnz_idx_t n=0; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((float)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n++; out[ii*1]/=aa; ax=out[ii*1]; for(;RSB_LIKELY(n0) ;--ii) { float ax; float aa; if(n>=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((float)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n--; out[ii*1]/=aa; ax=out[ii*1]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*1]-=VA[n]*ax; } out[ii*1]=(out[ii*1]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_float_C__tC_r1_c1_uu_sU_dE_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_uxua_float_H__tC_r1_c1_uu_sU_dE_uU(const float * restrict VA, const float * rhs, float * out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow {A^H}^{-1} \cdot x, where A \neq A^T. \f$ * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type float, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_half_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((float)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n++; out[ii*1]/=aa; ax=out[ii*1]; for(;RSB_LIKELY(n0) ;--ii) { float ax; float aa; if(n>=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((float)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n--; out[ii*1]/=aa; ax=out[ii*1]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*1]-=VA[n]*ax; } out[ii*1]=(out[ii*1]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_float_H__tC_r1_c1_uu_sU_dE_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_uxua_float_C__tN_r1_c1_uu_sU_dI_uU(const float * restrict VA, const float * rhs, float * out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow {A}^{-1} \cdot x, where A \neq A^T. \f$ * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type float, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr, *JA=(const rsb_coo_idx_t*)bindx; register rsb_nnz_idx_t n=0; rsb_coo_idx_t ii; for(n=nnz-1,ii=Mdim-1;RSB_LIKELY(ii+1>0) ;--ii) { float ax; ax=0; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii && j!=i))) break; ax += VA[n]*out[j*1]; } out[ii*1]=(out[ii*1]-ax); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_float_C__tN_r1_c1_uu_sU_dI_uU\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_uxua_float_C__tN_r1_c1_uu_sU_dI_uL(const float * restrict VA, const float * rhs, float * out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow {A}^{-1} \cdot x, where A \neq A^T. \f$ * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type float, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr, *JA=(const rsb_coo_idx_t*)bindx; register rsb_nnz_idx_t n=0; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { float ax; ax=0; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii && j!=i))) break; ax += VA[n]*out[j*1]; } out[ii*1]=(out[ii*1]-ax); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_float_H__tN_r1_c1_uu_sU_dI_uU\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_uxua_float_H__tN_r1_c1_uu_sU_dI_uL(const float * restrict VA, const float * rhs, float * out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow {A}^{-1} \cdot x, where A \neq A^T. \f$ * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type float, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_half_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { float ax; ax=out[ii*1]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*1]-=VA[n]*ax; } out[ii*1]=(out[ii*1]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_float_C__tT_r1_c1_uu_sU_dI_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_uxua_float_H__tT_r1_c1_uu_sU_dI_uU(const float * restrict VA, const float * rhs, float * out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow {A^T}^{-1} \cdot x, where A \neq A^T. \f$ * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type float, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_half_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { float ax; ax=out[ii*1]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*1]-=VA[n]*ax; } out[ii*1]=(out[ii*1]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_float_H__tT_r1_c1_uu_sU_dI_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_uxua_float_C__tC_r1_c1_uu_sU_dI_uU(const float * restrict VA, const float * rhs, float * out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow {A^H}^{-1} \cdot x, where A \neq A^T. \f$ * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type float, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr, *JA=(const rsb_coo_idx_t*)bindx; register rsb_nnz_idx_t n=0; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { float ax; ax=out[ii*1]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*1]-=VA[n]*ax; } out[ii*1]=(out[ii*1]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_float_C__tC_r1_c1_uu_sU_dI_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_uxua_float_H__tC_r1_c1_uu_sU_dI_uU(const float * restrict VA, const float * rhs, float * out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow {A^H}^{-1} \cdot x, where A \neq A^T. \f$ * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type float, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_half_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { float ax; ax=out[ii*1]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*1]-=VA[n]*ax; } out[ii*1]=(out[ii*1]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_float_H__tC_r1_c1_uu_sU_dI_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spmv_sxsa_float_C__tN_r1_c1_uu_sU_dE_uG(const float * restrict VA, const float * restrict rhs, float * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const float * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow \beta \cdot y + \alpha \cdot {A} \cdot x, where A \neq A^T. \f$ * with incx and incy as x and y vector strides * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type float, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr, *JA=(const rsb_coo_idx_t*)bindx; register rsb_nnz_idx_t n=0; const float alpha=*alphap; { for(n=0;n+30) ;--ii) { float ax; ax=0; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii && j!=i))) break; ax += VA[n]*out[j*incy]; } if(n==nnz || VA[n]==((float)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; out[ii*incy]=((alpha)*out[ii*incy]-ax)/VA[n]; --n; } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_float_C__tN_r1_c1_uu_sU_dE_uU\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_sxsx_float_C__tN_r1_c1_uu_sU_dE_uL(const float * restrict VA, const float * restrict rhs, float * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const float * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type float, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr, *JA=(const rsb_coo_idx_t*)bindx; register rsb_nnz_idx_t n=0; const float alpha=*alphap; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { float ax; ax=0; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii && j!=i))) break; ax += VA[n]*out[j*incy]; } if(n==nnz || VA[n]==((float)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; out[ii*incy]=((alpha)*out[ii*incy]-ax)/VA[n]; --n; } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_float_H__tN_r1_c1_uu_sU_dE_uU\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_sxsx_float_H__tN_r1_c1_uu_sU_dE_uL(const float * restrict VA, const float * restrict rhs, float * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const float * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type float, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; const float alpha=*alphap; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((float)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n++; out[ii*incy]/=aa; ax=out[ii*incy]; for(;RSB_LIKELY(n0) ;--ii) { float ax; float aa; if(n>=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((float)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n--; out[ii*incy]/=aa; ax=out[ii*incy]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*incy]-=VA[n]*ax; } out[ii*incy]=((alpha)*out[ii*incy]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_float_C__tT_r1_c1_uu_sU_dE_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_sxsx_float_H__tT_r1_c1_uu_sU_dE_uU(const float * restrict VA, const float * restrict rhs, float * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const float * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type float, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; const float alpha=*alphap; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((float)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n++; out[ii*incy]/=aa; ax=out[ii*incy]; for(;RSB_LIKELY(n0) ;--ii) { float ax; float aa; if(n>=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((float)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n--; out[ii*incy]/=aa; ax=out[ii*incy]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*incy]-=VA[n]*ax; } out[ii*incy]=((alpha)*out[ii*incy]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_float_H__tT_r1_c1_uu_sU_dE_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_sxsx_float_C__tC_r1_c1_uu_sU_dE_uU(const float * restrict VA, const float * restrict rhs, float * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const float * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type float, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr, *JA=(const rsb_coo_idx_t*)bindx; register rsb_nnz_idx_t n=0; const float alpha=*alphap; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((float)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n++; out[ii*incy]/=aa; ax=out[ii*incy]; for(;RSB_LIKELY(n0) ;--ii) { float ax; float aa; if(n>=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((float)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n--; out[ii*incy]/=aa; ax=out[ii*incy]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*incy]-=VA[n]*ax; } out[ii*incy]=((alpha)*out[ii*incy]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_float_C__tC_r1_c1_uu_sU_dE_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_sxsx_float_H__tC_r1_c1_uu_sU_dE_uU(const float * restrict VA, const float * restrict rhs, float * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const float * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type float, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; const float alpha=*alphap; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((float)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n++; out[ii*incy]/=aa; ax=out[ii*incy]; for(;RSB_LIKELY(n0) ;--ii) { float ax; float aa; if(n>=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((float)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n--; out[ii*incy]/=aa; ax=out[ii*incy]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*incy]-=VA[n]*ax; } out[ii*incy]=((alpha)*out[ii*incy]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_float_H__tC_r1_c1_uu_sU_dE_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_sxsx_float_C__tN_r1_c1_uu_sU_dI_uU(const float * restrict VA, const float * restrict rhs, float * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const float * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type float, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr, *JA=(const rsb_coo_idx_t*)bindx; register rsb_nnz_idx_t n=0; const float alpha=*alphap; rsb_coo_idx_t ii; for(n=nnz-1,ii=Mdim-1;RSB_LIKELY(ii+1>0) ;--ii) { float ax; ax=0; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii && j!=i))) break; ax += VA[n]*out[j*incy]; } out[ii*incy]=((alpha)*out[ii*incy]-ax); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_float_C__tN_r1_c1_uu_sU_dI_uU\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_sxsx_float_C__tN_r1_c1_uu_sU_dI_uL(const float * restrict VA, const float * restrict rhs, float * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const float * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type float, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr, *JA=(const rsb_coo_idx_t*)bindx; register rsb_nnz_idx_t n=0; const float alpha=*alphap; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { float ax; ax=0; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii && j!=i))) break; ax += VA[n]*out[j*incy]; } out[ii*incy]=((alpha)*out[ii*incy]-ax); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_float_H__tN_r1_c1_uu_sU_dI_uU\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_sxsx_float_H__tN_r1_c1_uu_sU_dI_uL(const float * restrict VA, const float * restrict rhs, float * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const float * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type float, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; const float alpha=*alphap; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { float ax; ax=out[ii*incy]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*incy]-=VA[n]*ax; } out[ii*incy]=((alpha)*out[ii*incy]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_float_C__tT_r1_c1_uu_sU_dI_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_sxsx_float_H__tT_r1_c1_uu_sU_dI_uU(const float * restrict VA, const float * restrict rhs, float * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const float * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type float, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; const float alpha=*alphap; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { float ax; ax=out[ii*incy]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*incy]-=VA[n]*ax; } out[ii*incy]=((alpha)*out[ii*incy]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_float_H__tT_r1_c1_uu_sU_dI_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_sxsx_float_C__tC_r1_c1_uu_sU_dI_uU(const float * restrict VA, const float * restrict rhs, float * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const float * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type float, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr, *JA=(const rsb_coo_idx_t*)bindx; register rsb_nnz_idx_t n=0; const float alpha=*alphap; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { float ax; ax=out[ii*incy]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*incy]-=VA[n]*ax; } out[ii*incy]=((alpha)*out[ii*incy]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_float_C__tC_r1_c1_uu_sU_dI_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_sxsx_float_H__tC_r1_c1_uu_sU_dI_uU(const float * restrict VA, const float * restrict rhs, float * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const float * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type float, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; const float alpha=*alphap; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { float ax; ax=out[ii*incy]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*incy]-=VA[n]*ax; } out[ii*incy]=((alpha)*out[ii*incy]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_float_H__tC_r1_c1_uu_sU_dI_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_infty_norm_float_C__tN_r1_c1_uu_sU_dE_uG(const float * VA, float * row_sums, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$ \|A\|_{\infty} \f$ (or rather, \f$ row\_sums_i \leftarrow \sum_{j=0}^{mdim} A_{ij} ), where A \neq A^T.\f$ * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type float, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr; register rsb_coo_idx_t i=0; register rsb_nnz_idx_t n=0; for(n=0;RSB_LIKELY(n0) ;--ii) { float complex ax; ax=0; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii && j!=i))) break; ax += VA[n]*out[j*1]; } if(n==nnz || VA[n]==((float complex)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; out[ii*1]=(out[ii*1]-ax)/VA[n]; --n; } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_float_complex_C__tN_r1_c1_uu_sU_dE_uU\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_uxua_float_complex_C__tN_r1_c1_uu_sU_dE_uL(const float complex * restrict VA, const float complex * rhs, float complex * out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow {A}^{-1} \cdot x, where A \neq A^T. \f$ * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type float complex, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr, *JA=(const rsb_coo_idx_t*)bindx; register rsb_nnz_idx_t n=0; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { float complex ax; ax=0; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii && j!=i))) break; ax += VA[n]*out[j*1]; } if(n==nnz || VA[n]==((float complex)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; out[ii*1]=(out[ii*1]-ax)/VA[n]; --n; } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_float_complex_H__tN_r1_c1_uu_sU_dE_uU\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_uxua_float_complex_H__tN_r1_c1_uu_sU_dE_uL(const float complex * restrict VA, const float complex * rhs, float complex * out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow {A}^{-1} \cdot x, where A \neq A^T. \f$ * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type float complex, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_half_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((float complex)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n++; out[ii*1]/=aa; ax=out[ii*1]; for(;RSB_LIKELY(n0) ;--ii) { float complex ax; float complex aa; if(n>=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((float complex)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n--; out[ii*1]/=aa; ax=out[ii*1]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*1]-=VA[n]*ax; } out[ii*1]=(out[ii*1]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_float_complex_C__tT_r1_c1_uu_sU_dE_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_uxua_float_complex_H__tT_r1_c1_uu_sU_dE_uU(const float complex * restrict VA, const float complex * rhs, float complex * out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow {A^T}^{-1} \cdot x, where A \neq A^T. \f$ * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type float complex, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_half_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((float complex)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n++; out[ii*1]/=aa; ax=out[ii*1]; for(;RSB_LIKELY(n0) ;--ii) { float complex ax; float complex aa; if(n>=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((float complex)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n--; out[ii*1]/=aa; ax=out[ii*1]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*1]-=VA[n]*ax; } out[ii*1]=(out[ii*1]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_float_complex_H__tT_r1_c1_uu_sU_dE_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_uxua_float_complex_C__tC_r1_c1_uu_sU_dE_uU(const float complex * restrict VA, const float complex * rhs, float complex * out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow {A^H}^{-1} \cdot x, where A \neq A^T. \f$ * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type float complex, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr, *JA=(const rsb_coo_idx_t*)bindx; register rsb_nnz_idx_t n=0; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((float complex)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n++; out[ii*1]/=aa; ax=out[ii*1]; for(;RSB_LIKELY(n0) ;--ii) { float complex ax; float complex aa; if(n>=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((float complex)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n--; out[ii*1]/=aa; ax=out[ii*1]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*1]-=conjf(VA[n])*ax; } out[ii*1]=(out[ii*1]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_float_complex_C__tC_r1_c1_uu_sU_dE_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_uxua_float_complex_H__tC_r1_c1_uu_sU_dE_uU(const float complex * restrict VA, const float complex * rhs, float complex * out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow {A^H}^{-1} \cdot x, where A \neq A^T. \f$ * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type float complex, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_half_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((float complex)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n++; out[ii*1]/=aa; ax=out[ii*1]; for(;RSB_LIKELY(n0) ;--ii) { float complex ax; float complex aa; if(n>=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((float complex)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n--; out[ii*1]/=aa; ax=out[ii*1]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*1]-=conjf(VA[n])*ax; } out[ii*1]=(out[ii*1]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_float_complex_H__tC_r1_c1_uu_sU_dE_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_uxua_float_complex_C__tN_r1_c1_uu_sU_dI_uU(const float complex * restrict VA, const float complex * rhs, float complex * out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow {A}^{-1} \cdot x, where A \neq A^T. \f$ * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type float complex, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr, *JA=(const rsb_coo_idx_t*)bindx; register rsb_nnz_idx_t n=0; rsb_coo_idx_t ii; for(n=nnz-1,ii=Mdim-1;RSB_LIKELY(ii+1>0) ;--ii) { float complex ax; ax=0; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii && j!=i))) break; ax += VA[n]*out[j*1]; } out[ii*1]=(out[ii*1]-ax); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_float_complex_C__tN_r1_c1_uu_sU_dI_uU\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_uxua_float_complex_C__tN_r1_c1_uu_sU_dI_uL(const float complex * restrict VA, const float complex * rhs, float complex * out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow {A}^{-1} \cdot x, where A \neq A^T. \f$ * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type float complex, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr, *JA=(const rsb_coo_idx_t*)bindx; register rsb_nnz_idx_t n=0; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { float complex ax; ax=0; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii && j!=i))) break; ax += VA[n]*out[j*1]; } out[ii*1]=(out[ii*1]-ax); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_float_complex_H__tN_r1_c1_uu_sU_dI_uU\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_uxua_float_complex_H__tN_r1_c1_uu_sU_dI_uL(const float complex * restrict VA, const float complex * rhs, float complex * out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow {A}^{-1} \cdot x, where A \neq A^T. \f$ * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type float complex, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_half_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { float complex ax; ax=out[ii*1]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*1]-=VA[n]*ax; } out[ii*1]=(out[ii*1]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_float_complex_C__tT_r1_c1_uu_sU_dI_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_uxua_float_complex_H__tT_r1_c1_uu_sU_dI_uU(const float complex * restrict VA, const float complex * rhs, float complex * out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow {A^T}^{-1} \cdot x, where A \neq A^T. \f$ * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type float complex, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_half_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { float complex ax; ax=out[ii*1]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*1]-=VA[n]*ax; } out[ii*1]=(out[ii*1]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_float_complex_H__tT_r1_c1_uu_sU_dI_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_uxua_float_complex_C__tC_r1_c1_uu_sU_dI_uU(const float complex * restrict VA, const float complex * rhs, float complex * out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow {A^H}^{-1} \cdot x, where A \neq A^T. \f$ * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type float complex, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr, *JA=(const rsb_coo_idx_t*)bindx; register rsb_nnz_idx_t n=0; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { float complex ax; ax=out[ii*1]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*1]-=conjf(VA[n])*ax; } out[ii*1]=(out[ii*1]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_float_complex_C__tC_r1_c1_uu_sU_dI_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_uxua_float_complex_H__tC_r1_c1_uu_sU_dI_uU(const float complex * restrict VA, const float complex * rhs, float complex * out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow {A^H}^{-1} \cdot x, where A \neq A^T. \f$ * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type float complex, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_half_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { float complex ax; ax=out[ii*1]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*1]-=conjf(VA[n])*ax; } out[ii*1]=(out[ii*1]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_float_complex_H__tC_r1_c1_uu_sU_dI_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spmv_sxsa_float_complex_C__tN_r1_c1_uu_sU_dE_uG(const float complex * restrict VA, const float complex * restrict rhs, float complex * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const float complex * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow \beta \cdot y + \alpha \cdot {A} \cdot x, where A \neq A^T. \f$ * with incx and incy as x and y vector strides * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type float complex, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr, *JA=(const rsb_coo_idx_t*)bindx; register rsb_nnz_idx_t n=0; const float complex alpha=*alphap; { for(n=0;n+30) ;--ii) { float complex ax; ax=0; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii && j!=i))) break; ax += VA[n]*out[j*incy]; } if(n==nnz || VA[n]==((float complex)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; out[ii*incy]=((alpha)*out[ii*incy]-ax)/VA[n]; --n; } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_float_complex_C__tN_r1_c1_uu_sU_dE_uU\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_sxsx_float_complex_C__tN_r1_c1_uu_sU_dE_uL(const float complex * restrict VA, const float complex * restrict rhs, float complex * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const float complex * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type float complex, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr, *JA=(const rsb_coo_idx_t*)bindx; register rsb_nnz_idx_t n=0; const float complex alpha=*alphap; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { float complex ax; ax=0; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii && j!=i))) break; ax += VA[n]*out[j*incy]; } if(n==nnz || VA[n]==((float complex)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; out[ii*incy]=((alpha)*out[ii*incy]-ax)/VA[n]; --n; } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_float_complex_H__tN_r1_c1_uu_sU_dE_uU\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_sxsx_float_complex_H__tN_r1_c1_uu_sU_dE_uL(const float complex * restrict VA, const float complex * restrict rhs, float complex * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const float complex * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type float complex, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; const float complex alpha=*alphap; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((float complex)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n++; out[ii*incy]/=aa; ax=out[ii*incy]; for(;RSB_LIKELY(n0) ;--ii) { float complex ax; float complex aa; if(n>=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((float complex)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n--; out[ii*incy]/=aa; ax=out[ii*incy]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*incy]-=VA[n]*ax; } out[ii*incy]=((alpha)*out[ii*incy]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_float_complex_C__tT_r1_c1_uu_sU_dE_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_sxsx_float_complex_H__tT_r1_c1_uu_sU_dE_uU(const float complex * restrict VA, const float complex * restrict rhs, float complex * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const float complex * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type float complex, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; const float complex alpha=*alphap; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((float complex)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n++; out[ii*incy]/=aa; ax=out[ii*incy]; for(;RSB_LIKELY(n0) ;--ii) { float complex ax; float complex aa; if(n>=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((float complex)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n--; out[ii*incy]/=aa; ax=out[ii*incy]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*incy]-=VA[n]*ax; } out[ii*incy]=((alpha)*out[ii*incy]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_float_complex_H__tT_r1_c1_uu_sU_dE_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_sxsx_float_complex_C__tC_r1_c1_uu_sU_dE_uU(const float complex * restrict VA, const float complex * restrict rhs, float complex * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const float complex * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type float complex, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr, *JA=(const rsb_coo_idx_t*)bindx; register rsb_nnz_idx_t n=0; const float complex alpha=*alphap; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((float complex)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n++; out[ii*incy]/=aa; ax=out[ii*incy]; for(;RSB_LIKELY(n0) ;--ii) { float complex ax; float complex aa; if(n>=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((float complex)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n--; out[ii*incy]/=aa; ax=out[ii*incy]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*incy]-=conjf(VA[n])*ax; } out[ii*incy]=((alpha)*out[ii*incy]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_float_complex_C__tC_r1_c1_uu_sU_dE_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_sxsx_float_complex_H__tC_r1_c1_uu_sU_dE_uU(const float complex * restrict VA, const float complex * restrict rhs, float complex * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const float complex * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type float complex, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; const float complex alpha=*alphap; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((float complex)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n++; out[ii*incy]/=aa; ax=out[ii*incy]; for(;RSB_LIKELY(n0) ;--ii) { float complex ax; float complex aa; if(n>=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((float complex)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n--; out[ii*incy]/=aa; ax=out[ii*incy]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*incy]-=conjf(VA[n])*ax; } out[ii*incy]=((alpha)*out[ii*incy]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_float_complex_H__tC_r1_c1_uu_sU_dE_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_sxsx_float_complex_C__tN_r1_c1_uu_sU_dI_uU(const float complex * restrict VA, const float complex * restrict rhs, float complex * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const float complex * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type float complex, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr, *JA=(const rsb_coo_idx_t*)bindx; register rsb_nnz_idx_t n=0; const float complex alpha=*alphap; rsb_coo_idx_t ii; for(n=nnz-1,ii=Mdim-1;RSB_LIKELY(ii+1>0) ;--ii) { float complex ax; ax=0; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii && j!=i))) break; ax += VA[n]*out[j*incy]; } out[ii*incy]=((alpha)*out[ii*incy]-ax); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_float_complex_C__tN_r1_c1_uu_sU_dI_uU\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_sxsx_float_complex_C__tN_r1_c1_uu_sU_dI_uL(const float complex * restrict VA, const float complex * restrict rhs, float complex * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const float complex * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type float complex, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr, *JA=(const rsb_coo_idx_t*)bindx; register rsb_nnz_idx_t n=0; const float complex alpha=*alphap; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { float complex ax; ax=0; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii && j!=i))) break; ax += VA[n]*out[j*incy]; } out[ii*incy]=((alpha)*out[ii*incy]-ax); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_float_complex_H__tN_r1_c1_uu_sU_dI_uU\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_sxsx_float_complex_H__tN_r1_c1_uu_sU_dI_uL(const float complex * restrict VA, const float complex * restrict rhs, float complex * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const float complex * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type float complex, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; const float complex alpha=*alphap; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { float complex ax; ax=out[ii*incy]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*incy]-=VA[n]*ax; } out[ii*incy]=((alpha)*out[ii*incy]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_float_complex_C__tT_r1_c1_uu_sU_dI_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_sxsx_float_complex_H__tT_r1_c1_uu_sU_dI_uU(const float complex * restrict VA, const float complex * restrict rhs, float complex * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const float complex * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type float complex, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; const float complex alpha=*alphap; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { float complex ax; ax=out[ii*incy]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*incy]-=VA[n]*ax; } out[ii*incy]=((alpha)*out[ii*incy]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_float_complex_H__tT_r1_c1_uu_sU_dI_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_sxsx_float_complex_C__tC_r1_c1_uu_sU_dI_uU(const float complex * restrict VA, const float complex * restrict rhs, float complex * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const float complex * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type float complex, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr, *JA=(const rsb_coo_idx_t*)bindx; register rsb_nnz_idx_t n=0; const float complex alpha=*alphap; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { float complex ax; ax=out[ii*incy]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*incy]-=conjf(VA[n])*ax; } out[ii*incy]=((alpha)*out[ii*incy]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_float_complex_C__tC_r1_c1_uu_sU_dI_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_sxsx_float_complex_H__tC_r1_c1_uu_sU_dI_uU(const float complex * restrict VA, const float complex * restrict rhs, float complex * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const float complex * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type float complex, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; const float complex alpha=*alphap; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { float complex ax; ax=out[ii*incy]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*incy]-=conjf(VA[n])*ax; } out[ii*incy]=((alpha)*out[ii*incy]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_float_complex_H__tC_r1_c1_uu_sU_dI_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_infty_norm_float_complex_C__tN_r1_c1_uu_sU_dE_uG(const float complex * VA, float complex * row_sums, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$ \|A\|_{\infty} \f$ (or rather, \f$ row\_sums_i \leftarrow \sum_{j=0}^{mdim} A_{ij} ), where A \neq A^T.\f$ * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type float complex, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr; register rsb_coo_idx_t i=0; register rsb_nnz_idx_t n=0; for(n=0;RSB_LIKELY(n0) ;--ii) { double complex ax; ax=0; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii && j!=i))) break; ax += VA[n]*out[j*1]; } if(n==nnz || VA[n]==((double complex)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; out[ii*1]=(out[ii*1]-ax)/VA[n]; --n; } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_double_complex_C__tN_r1_c1_uu_sU_dE_uU\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_uxua_double_complex_C__tN_r1_c1_uu_sU_dE_uL(const double complex * restrict VA, const double complex * rhs, double complex * out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow {A}^{-1} \cdot x, where A \neq A^T. \f$ * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type double complex, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr, *JA=(const rsb_coo_idx_t*)bindx; register rsb_nnz_idx_t n=0; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { double complex ax; ax=0; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii && j!=i))) break; ax += VA[n]*out[j*1]; } if(n==nnz || VA[n]==((double complex)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; out[ii*1]=(out[ii*1]-ax)/VA[n]; --n; } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_double_complex_H__tN_r1_c1_uu_sU_dE_uU\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_uxua_double_complex_H__tN_r1_c1_uu_sU_dE_uL(const double complex * restrict VA, const double complex * rhs, double complex * out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow {A}^{-1} \cdot x, where A \neq A^T. \f$ * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type double complex, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_half_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((double complex)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n++; out[ii*1]/=aa; ax=out[ii*1]; for(;RSB_LIKELY(n0) ;--ii) { double complex ax; double complex aa; if(n>=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((double complex)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n--; out[ii*1]/=aa; ax=out[ii*1]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*1]-=VA[n]*ax; } out[ii*1]=(out[ii*1]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_double_complex_C__tT_r1_c1_uu_sU_dE_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_uxua_double_complex_H__tT_r1_c1_uu_sU_dE_uU(const double complex * restrict VA, const double complex * rhs, double complex * out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow {A^T}^{-1} \cdot x, where A \neq A^T. \f$ * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type double complex, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_half_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((double complex)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n++; out[ii*1]/=aa; ax=out[ii*1]; for(;RSB_LIKELY(n0) ;--ii) { double complex ax; double complex aa; if(n>=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((double complex)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n--; out[ii*1]/=aa; ax=out[ii*1]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*1]-=VA[n]*ax; } out[ii*1]=(out[ii*1]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_double_complex_H__tT_r1_c1_uu_sU_dE_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_uxua_double_complex_C__tC_r1_c1_uu_sU_dE_uU(const double complex * restrict VA, const double complex * rhs, double complex * out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow {A^H}^{-1} \cdot x, where A \neq A^T. \f$ * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type double complex, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr, *JA=(const rsb_coo_idx_t*)bindx; register rsb_nnz_idx_t n=0; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((double complex)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n++; out[ii*1]/=aa; ax=out[ii*1]; for(;RSB_LIKELY(n0) ;--ii) { double complex ax; double complex aa; if(n>=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((double complex)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n--; out[ii*1]/=aa; ax=out[ii*1]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*1]-=conj(VA[n])*ax; } out[ii*1]=(out[ii*1]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_double_complex_C__tC_r1_c1_uu_sU_dE_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_uxua_double_complex_H__tC_r1_c1_uu_sU_dE_uU(const double complex * restrict VA, const double complex * rhs, double complex * out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow {A^H}^{-1} \cdot x, where A \neq A^T. \f$ * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type double complex, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_half_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((double complex)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n++; out[ii*1]/=aa; ax=out[ii*1]; for(;RSB_LIKELY(n0) ;--ii) { double complex ax; double complex aa; if(n>=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((double complex)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n--; out[ii*1]/=aa; ax=out[ii*1]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*1]-=conj(VA[n])*ax; } out[ii*1]=(out[ii*1]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_double_complex_H__tC_r1_c1_uu_sU_dE_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_uxua_double_complex_C__tN_r1_c1_uu_sU_dI_uU(const double complex * restrict VA, const double complex * rhs, double complex * out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow {A}^{-1} \cdot x, where A \neq A^T. \f$ * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type double complex, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr, *JA=(const rsb_coo_idx_t*)bindx; register rsb_nnz_idx_t n=0; rsb_coo_idx_t ii; for(n=nnz-1,ii=Mdim-1;RSB_LIKELY(ii+1>0) ;--ii) { double complex ax; ax=0; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii && j!=i))) break; ax += VA[n]*out[j*1]; } out[ii*1]=(out[ii*1]-ax); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_double_complex_C__tN_r1_c1_uu_sU_dI_uU\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_uxua_double_complex_C__tN_r1_c1_uu_sU_dI_uL(const double complex * restrict VA, const double complex * rhs, double complex * out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow {A}^{-1} \cdot x, where A \neq A^T. \f$ * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type double complex, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr, *JA=(const rsb_coo_idx_t*)bindx; register rsb_nnz_idx_t n=0; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { double complex ax; ax=0; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii && j!=i))) break; ax += VA[n]*out[j*1]; } out[ii*1]=(out[ii*1]-ax); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_double_complex_H__tN_r1_c1_uu_sU_dI_uU\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_uxua_double_complex_H__tN_r1_c1_uu_sU_dI_uL(const double complex * restrict VA, const double complex * rhs, double complex * out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow {A}^{-1} \cdot x, where A \neq A^T. \f$ * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type double complex, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_half_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { double complex ax; ax=out[ii*1]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*1]-=VA[n]*ax; } out[ii*1]=(out[ii*1]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_double_complex_C__tT_r1_c1_uu_sU_dI_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_uxua_double_complex_H__tT_r1_c1_uu_sU_dI_uU(const double complex * restrict VA, const double complex * rhs, double complex * out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow {A^T}^{-1} \cdot x, where A \neq A^T. \f$ * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type double complex, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_half_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { double complex ax; ax=out[ii*1]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*1]-=VA[n]*ax; } out[ii*1]=(out[ii*1]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_double_complex_H__tT_r1_c1_uu_sU_dI_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_uxua_double_complex_C__tC_r1_c1_uu_sU_dI_uU(const double complex * restrict VA, const double complex * rhs, double complex * out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow {A^H}^{-1} \cdot x, where A \neq A^T. \f$ * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type double complex, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr, *JA=(const rsb_coo_idx_t*)bindx; register rsb_nnz_idx_t n=0; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { double complex ax; ax=out[ii*1]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*1]-=conj(VA[n])*ax; } out[ii*1]=(out[ii*1]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_double_complex_C__tC_r1_c1_uu_sU_dI_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_uxua_double_complex_H__tC_r1_c1_uu_sU_dI_uU(const double complex * restrict VA, const double complex * rhs, double complex * out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow {A^H}^{-1} \cdot x, where A \neq A^T. \f$ * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type double complex, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_half_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { double complex ax; ax=out[ii*1]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*1]-=conj(VA[n])*ax; } out[ii*1]=(out[ii*1]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_uxua_double_complex_H__tC_r1_c1_uu_sU_dI_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spmv_sxsa_double_complex_C__tN_r1_c1_uu_sU_dE_uG(const double complex * restrict VA, const double complex * restrict rhs, double complex * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const double complex * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * Computes \f$y \leftarrow \beta \cdot y + \alpha \cdot {A} \cdot x, where A \neq A^T. \f$ * with incx and incy as x and y vector strides * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type double complex, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr, *JA=(const rsb_coo_idx_t*)bindx; register rsb_nnz_idx_t n=0; const double complex alpha=*alphap; { for(n=0;n+30) ;--ii) { double complex ax; ax=0; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii && j!=i))) break; ax += VA[n]*out[j*incy]; } if(n==nnz || VA[n]==((double complex)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; out[ii*incy]=((alpha)*out[ii*incy]-ax)/VA[n]; --n; } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_double_complex_C__tN_r1_c1_uu_sU_dE_uU\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_sxsx_double_complex_C__tN_r1_c1_uu_sU_dE_uL(const double complex * restrict VA, const double complex * restrict rhs, double complex * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const double complex * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type double complex, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr, *JA=(const rsb_coo_idx_t*)bindx; register rsb_nnz_idx_t n=0; const double complex alpha=*alphap; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { double complex ax; ax=0; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii && j!=i))) break; ax += VA[n]*out[j*incy]; } if(n==nnz || VA[n]==((double complex)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; out[ii*incy]=((alpha)*out[ii*incy]-ax)/VA[n]; --n; } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_double_complex_H__tN_r1_c1_uu_sU_dE_uU\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_sxsx_double_complex_H__tN_r1_c1_uu_sU_dE_uL(const double complex * restrict VA, const double complex * restrict rhs, double complex * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const double complex * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type double complex, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; const double complex alpha=*alphap; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((double complex)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n++; out[ii*incy]/=aa; ax=out[ii*incy]; for(;RSB_LIKELY(n0) ;--ii) { double complex ax; double complex aa; if(n>=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((double complex)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n--; out[ii*incy]/=aa; ax=out[ii*incy]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*incy]-=VA[n]*ax; } out[ii*incy]=((alpha)*out[ii*incy]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_double_complex_C__tT_r1_c1_uu_sU_dE_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_sxsx_double_complex_H__tT_r1_c1_uu_sU_dE_uU(const double complex * restrict VA, const double complex * restrict rhs, double complex * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const double complex * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type double complex, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; const double complex alpha=*alphap; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((double complex)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n++; out[ii*incy]/=aa; ax=out[ii*incy]; for(;RSB_LIKELY(n0) ;--ii) { double complex ax; double complex aa; if(n>=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((double complex)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n--; out[ii*incy]/=aa; ax=out[ii*incy]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*incy]-=VA[n]*ax; } out[ii*incy]=((alpha)*out[ii*incy]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_double_complex_H__tT_r1_c1_uu_sU_dE_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_sxsx_double_complex_C__tC_r1_c1_uu_sU_dE_uU(const double complex * restrict VA, const double complex * restrict rhs, double complex * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const double complex * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type double complex, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr, *JA=(const rsb_coo_idx_t*)bindx; register rsb_nnz_idx_t n=0; const double complex alpha=*alphap; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((double complex)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n++; out[ii*incy]/=aa; ax=out[ii*incy]; for(;RSB_LIKELY(n0) ;--ii) { double complex ax; double complex aa; if(n>=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((double complex)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n--; out[ii*incy]/=aa; ax=out[ii*incy]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*incy]-=conj(VA[n])*ax; } out[ii*incy]=((alpha)*out[ii*incy]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_double_complex_C__tC_r1_c1_uu_sU_dE_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_sxsx_double_complex_H__tC_r1_c1_uu_sU_dE_uU(const double complex * restrict VA, const double complex * restrict rhs, double complex * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const double complex * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type double complex, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; const double complex alpha=*alphap; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((double complex)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n++; out[ii*incy]/=aa; ax=out[ii*incy]; for(;RSB_LIKELY(n0) ;--ii) { double complex ax; double complex aa; if(n>=nnz)return RSB_ERR_INVALID_NUMERICAL_DATA; aa=VA[n]; if(VA[n]==((double complex)(0)))return RSB_ERR_INVALID_NUMERICAL_DATA; n--; out[ii*incy]/=aa; ax=out[ii*incy]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*incy]-=conj(VA[n])*ax; } out[ii*incy]=((alpha)*out[ii*incy]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_double_complex_H__tC_r1_c1_uu_sU_dE_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_sxsx_double_complex_C__tN_r1_c1_uu_sU_dI_uU(const double complex * restrict VA, const double complex * restrict rhs, double complex * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const double complex * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type double complex, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr, *JA=(const rsb_coo_idx_t*)bindx; register rsb_nnz_idx_t n=0; const double complex alpha=*alphap; rsb_coo_idx_t ii; for(n=nnz-1,ii=Mdim-1;RSB_LIKELY(ii+1>0) ;--ii) { double complex ax; ax=0; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii && j!=i))) break; ax += VA[n]*out[j*incy]; } out[ii*incy]=((alpha)*out[ii*incy]-ax); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_double_complex_C__tN_r1_c1_uu_sU_dI_uU\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_sxsx_double_complex_C__tN_r1_c1_uu_sU_dI_uL(const double complex * restrict VA, const double complex * restrict rhs, double complex * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const double complex * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type double complex, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr, *JA=(const rsb_coo_idx_t*)bindx; register rsb_nnz_idx_t n=0; const double complex alpha=*alphap; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { double complex ax; ax=0; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii && j!=i))) break; ax += VA[n]*out[j*incy]; } out[ii*incy]=((alpha)*out[ii*incy]-ax); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_double_complex_H__tN_r1_c1_uu_sU_dI_uU\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_sxsx_double_complex_H__tN_r1_c1_uu_sU_dI_uL(const double complex * restrict VA, const double complex * restrict rhs, double complex * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const double complex * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type double complex, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; const double complex alpha=*alphap; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { double complex ax; ax=out[ii*incy]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*incy]-=VA[n]*ax; } out[ii*incy]=((alpha)*out[ii*incy]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_double_complex_C__tT_r1_c1_uu_sU_dI_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_sxsx_double_complex_H__tT_r1_c1_uu_sU_dI_uU(const double complex * restrict VA, const double complex * restrict rhs, double complex * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const double complex * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type double complex, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; const double complex alpha=*alphap; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { double complex ax; ax=out[ii*incy]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*incy]-=VA[n]*ax; } out[ii*incy]=((alpha)*out[ii*incy]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_double_complex_H__tT_r1_c1_uu_sU_dI_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_sxsx_double_complex_C__tC_r1_c1_uu_sU_dI_uU(const double complex * restrict VA, const double complex * restrict rhs, double complex * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const double complex * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type double complex, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr, *JA=(const rsb_coo_idx_t*)bindx; register rsb_nnz_idx_t n=0; const double complex alpha=*alphap; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { double complex ax; ax=out[ii*incy]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*incy]-=conj(VA[n])*ax; } out[ii*incy]=((alpha)*out[ii*incy]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_double_complex_C__tC_r1_c1_uu_sU_dI_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_spsv_sxsx_double_complex_H__tC_r1_c1_uu_sU_dI_uU(const double complex * restrict VA, const double complex * restrict rhs, double complex * restrict out, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_half_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz,const double complex * restrict alphap,rsb_coo_idx_t incx, rsb_coo_idx_t incy) { /** * \ingroup rsb_doc_kernels * A blocked 1 x 1, stored in BCOR format, diagonal implicit, of type double complex, with rsb_half_idx_t column indices. * \return \rsb_errval_inp_param_msg */ register rsb_coo_idx_t i=0,j=0; const rsb_half_idx_t *IA=(const rsb_half_idx_t*)bpntr, *JA=(const rsb_half_idx_t*)bindx; register rsb_nnz_idx_t n=0; const double complex alpha=*alphap; rsb_coo_idx_t ii; for(n=0,ii=0;RSB_LIKELY(ii0) ;--ii) { double complex ax; ax=out[ii*incy]; for(;RSB_LIKELY(n+1>0);--n) { i=IA[n]; j=JA[n]; if(RSB_UNLIKELY(!(i==ii ))) break; out[j*incy]-=conj(VA[n])*ax; } out[ii*incy]=((alpha)*out[ii*incy]); } if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCOR_spsv_sxsx_double_complex_H__tC_r1_c1_uu_sU_dI_uL\n"); return RSB_ERR_NO_ERROR; } rsb_err_t rsb__BCOR_infty_norm_double_complex_C__tN_r1_c1_uu_sU_dE_uG(const double complex * VA, double complex * row_sums, const rsb_coo_idx_t Mdim,const rsb_coo_idx_t mdim,const rsb_coo_idx_t * restrict bindx,const rsb_nnz_idx_t * restrict bpntr,const rsb_nnz_idx_t *restrict indptr,const rsb_coo_idx_t * restrict rpntr,const rsb_coo_idx_t * restrict cpntr,const rsb_coo_idx_t br,const rsb_coo_idx_t bc,const rsb_coo_idx_t roff,const rsb_coo_idx_t coff,const rsb_flags_t flags,const rsb_nnz_idx_t nnz) { /** * \ingroup rsb_doc_kernels * Computes \f$ \|A\|_{\infty} \f$ (or rather, \f$ row\_sums_i \leftarrow \sum_{j=0}^{mdim} A_{ij} ), where A \neq A^T.\f$ * A blocked 1 x 1, stored in BCOR format, diagonal explicit, of type double complex, with rsb_coo_idx_t column indices. * \return \rsb_errval_inp_param_msg */ const rsb_coo_idx_t *IA=(const rsb_coo_idx_t*)bpntr; register rsb_coo_idx_t i=0; register rsb_nnz_idx_t n=0; for(n=0;RSB_LIKELY(n