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

Function Dot

fem/shapefunction_utils.hpp:61–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59
60 template <int D, typename SCAL>
61 inline SCAL Dot (const AutoDiff<D,SCAL> & u, const AutoDiff<D,SCAL> & v)
62 {
63 SCAL sum = 0;
64 for (int i = 0; i < D; i++)
65 sum += u.DValue(i) * v.DValue(i);
66 return sum;
67 }
68
69
70 template <int D, typename SCAL>

Callers 3

THDiv2DivShapeMethod · 0.85
DivShapeMethod · 0.85
CurlShapeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected