Function ddot_subrow (o2scl_cblas)¶
-
template<class mat_t, class vec_t>
double o2scl_cblas::ddot_subrow(const size_t N, const mat_t &X, const size_t ir, const size_t ic, const vec_t &Y)¶ Compute \( r=x \cdot y \) for a subrow of a matrix.
Given the matrix
X
, define the vectorx
as the row with indexir
. This function computes \( r=x \cdot y \) for elements in the vectorsx
from columnic
to column(inclusive). All other elements in
x
andy
are not referenced.If
ic
is greater thanN-1
then the error handler will be called ifO2SCL_NO_RANGE_CHECK
is not defined.Used in householder_hv_sub().