MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / SetUp

Method SetUp

test/approx1.cpp:1021–1030  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1019 Approx1NullArgs() : out(0), in(0), pos(0) {}
1020
1021 void SetUp() {
1022 SimpleTestData data;
1023
1024 ASSERT_SUCCESS(af_create_array(&in, &data.h_in.front(),
1025 data.in_dims.ndims(), data.in_dims.get(),
1026 f32));
1027 ASSERT_SUCCESS(af_create_array(&pos, &data.h_pos.front(),
1028 data.pos_dims.ndims(),
1029 data.pos_dims.get(), f32));
1030 }
1031
1032 void TearDown() {
1033 if (pos != 0) { ASSERT_SUCCESS(af_release_array(pos)); }

Callers

nothing calls this directly

Calls 3

af_create_arrayFunction · 0.50
ndimsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected