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

Method T

src/OpenFOAM/primitives/MatrixSpace/MatrixSpaceI.H:288–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286
287template<class Form, class Cmpt, Foam::direction Mrows, Foam::direction Ncols>
288inline typename Foam::typeOfTranspose<Cmpt, Form>::type
289Foam::MatrixSpace<Form, Cmpt, Mrows, Ncols>::T() const
290{
291 typename typeOfTranspose<Cmpt, Form>::type result;
292
293 for (direction i=0; i<Mrows; ++i)
294 {
295 for (direction j=0; j<Ncols; ++j)
296 {
297 result(j,i) = operator()(i, j);
298 }
299 }
300
301 return result;
302}
303
304
305template<class Form, class Cmpt, Foam::direction Mrows, Foam::direction Ncols>

Callers 1

TFunction · 0.45

Calls 2

resultClass · 0.85
operatorFunction · 0.50

Tested by

no test coverage detected