Function dscal_subrow (o2scl_cblas)

O2scl : Function List

template<class mat_t>
void o2scl_cblas::dscal_subrow(mat_t &A, const size_t ir, const size_t ic, const size_t N, const double alpha)

Compute \( x=\alpha x \) for a subrow of a matrix.

Given the matrix A, define the vector x as the row with index ir. This function computes \( x = \alpha x \) for elements in the vectors x from column ic to column (inclusive). All other elements in x and y are not referenced.

If ic is greater than N-1 then the error handler will be called if O2SCL_NO_RANGE_CHECK is not defined.