MCPcopy Create free account
hub / github.com/NGSolve/ngsolve / RowTimesVector

Function RowTimesVector

linalg/sparsematrix.hpp:625–632  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 3

MultAddMethod · 0.85
MultAdd1Method · 0.85
MultAddMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected