MCPcopy Create free account
hub / github.com/Simple-Robotics/Simple / SetUp

Method SetUp

benchmark/affine-transform.cpp:29–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27struct BenchFixture : benchmark::Fixture
28{
29 void SetUp(benchmark::State &)
30 {
31 y.reserve(N);
32 x.reserve(N);
33 t.reserve(N);
34 M.reserve(N);
35 dotprod.reserve(N);
36 for (std::size_t i = 0; i < N; ++i)
37 {
38 y.push_back(ResVec::Zero());
39 x.push_back(InVec::Random());
40 t.push_back(InVec::Random());
41 M.push_back(Mat::Random());
42 dotprod.push_back(0);
43 }
44 }
45
46 void TearDown(benchmark::State &)
47 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected