MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / operator*

Function operator*

src/OpenFOAM/primitives/Tensor2D/Tensor2DI.H:239–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237//- Outer-product between two vectors
238template<class Cmpt>
239inline typename outerProduct<Vector2D<Cmpt>, Vector2D<Cmpt>>::type
240operator*(const Vector2D<Cmpt>& v1, const Vector2D<Cmpt>& v2)
241{
242 return Tensor2D<Cmpt>
243 (
244 v1.x()*v2.x(), v1.x()*v2.y(),
245 v1.y()*v2.x(), v1.y()*v2.y()
246 );
247}
248
249
250//- Return the trace of a tensor

Callers

nothing calls this directly

Calls 2

xMethod · 0.45
yMethod · 0.45

Tested by

no test coverage detected