67 DVectorSlice::const_iterator
70 for(
size_type i = 1; x_itr != x.end(); ++i, ++d_itr, ++x_itr ) {
76 term = ST::magnitude(*d_itr) / ( 1 + ST::magnitude(*x_itr) );
77 if( term > *max_term ) {
81 if( term < *min_term ) {
87 *av_term = *av_term / x.dim();
void vector_change_stats(const DVectorSlice &x, const DVectorSlice &d, value_type *max_term, size_type *max_k, value_type *min_term, size_type *min_k, value_type *av_term)
Compute statistics for change in a vector.
AbstractLinAlgPack::size_type size_type
void VopV_assert_sizes(size_type v_rhs1_size, size_type v_rhs2_size)
v_rhs1 op v_rhs2
DenseLinAlgPack::VectorSliceTmpl< value_type > DVectorSlice
AbstractLinAlgPack::value_type value_type