| 623 | |
| 624 | /// |
| 625 | inline TVY RowTimesVector (int row, const FlatVector<TVX> vec) const |
| 626 | { |
| 627 | typedef typename mat_traits<TVY>::TSCAL TTSCAL; |
| 628 | TVY sum = TTSCAL(0); |
| 629 | for (size_t j = firsti[row]; j < firsti[row+1]; j++) |
| 630 | sum += data[j] * vec(colnr[j]); |
| 631 | return sum; |
| 632 | } |
| 633 | |
| 634 | /// |
| 635 | void AddRowTransToVector (int row, TVY el, FlatVector<TVX> vec) const |