#include <vector>
#include <stdexcept>
{
const std::vector<rsb_coo_idx_t> IA {0,1,2,3,4,5,1}, JA {0,1,2,3,4,5,0};
const std::vector<RSB_DEFAULT_TYPE> VA {1,1,1,1,1,1,2}, X(ncA,1);
std::vector<RSB_DEFAULT_TYPE> Y(nrA,0);
throw std::runtime_error("failure running rsb_lib_init!");
VA.data(),IA.data(),JA.data(),nnzA,typecode,nrA,ncA,1,1,
,&errval);
throw std::runtime_error("failure running rsb_mtx_alloc_from_coo_const!");
if ( ! mtxAp )
throw std::runtime_error("failure running rsb_file_mtx_save!");
errval =
rsb_tune_spmm(&mtxAp,&sf,&tn,0,0.0,
RSB_TRANSPOSITION_N,&alpha,
nullptr,nrhs,
RSB_FLAG_WANT_COLUMN_MAJOR_ORDER,X.data(),ncA,&beta,Y.data(),nrA);
if ( ! mtxAp )
throw std::runtime_error("failure running rsb_tune_spmm!");
if ( ! mtxAp )
throw std::runtime_error("failure running rsb_spmv!");
throw std::runtime_error("failure running rsb_lib_exit!");
}