/* @cond INNERDOC */
/*!
@file
@brief
Performance kernels dispatching code, for each type, submatrix size, operation.
For block compressed sparse stripes 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_internals.h"
#include "rsb.h"
#pragma GCC visibility push(hidden)
rsb_err_t rsb__BCSR_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)
{
/**
* \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 BCSR 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;
register rsb_nnz_idx_t k=0;
const register rsb_coo_idx_t columns=1,rows=1;
const double *a=VA;
const rsb_coo_idx_t incx=1,incy=1;
if(rsb__getenv_int_t("RSB_VERBOSE_KERNELS",0))RSB_STDOUT("in rsb__BCSR_infty_norm_double_C__tN_r1_c1_uu_sU_dE_uG\n");
for(i=br;RSB_LIKELY(i