MCPcopy Create free account
hub / github.com/PX4/eigen / main

Function main

doc/examples/class_FixedVectorBlock.cpp:20–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20int main(int, char**)
21{
22 Matrix<int,1,6> v; v << 1,2,3,4,5,6;
23 cout << firstTwo(4*v) << endl; // calls the const version
24 firstTwo(v) *= 2; // calls the non-const version
25 cout << "Now the vector v is:" << endl << v << endl;
26 return 0;
27}

Callers

nothing calls this directly

Calls 1

firstTwoFunction · 0.85

Tested by

no test coverage detected