Function scal_subrow (o2scl_cblas)¶
-
template<class mat_t, class fp_t>
void o2scl_cblas::scal_subrow(mat_t &A, const size_t ir, const size_t ic, const size_t N, const fp_t alpha)¶ Compute \( x=\alpha x \) for a subrow of a matrix.
Given the matrix
A, define the vectorxas the row with indexir. This function computes \( x = \alpha x \) for elements in the vectorsxfrom columnicto column(inclusive). All other elements inxandyare not referenced.If
icis greater thanN-1then the error handler will be called ifO2SCL_NO_RANGE_CHECKis not defined.