MCPcopy Create free account
hub / github.com/TileDB-Inc/TileDB / create_int32_array_negative_domain

Function create_int32_array_negative_domain

test/src/unit-cppapi-hilbert.cc:56–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56void create_int32_array_negative_domain(
57 Context ctx, const std::string& array_name) {
58 Domain domain(ctx);
59 auto d1 = Dimension::create<int32_t>(ctx, "d1", {{-50, 50}});
60 auto d2 = Dimension::create<int32_t>(ctx, "d2", {{-100, 100}});
61 domain.add_dimensions(d1, d2);
62 auto a = Attribute::create<int32_t>(ctx, "a");
63 ArraySchema schema(ctx, TILEDB_SPARSE);
64 schema.set_domain(domain);
65 schema.add_attribute(a);
66 schema.set_cell_order(TILEDB_HILBERT);
67 schema.set_capacity(2);
68 CHECK_NOTHROW(schema.check());
69 Array::create(array_name, schema);
70}
71
72void create_float32_array(Context ctx, const std::string& array_name) {
73 Domain domain(ctx);

Callers 1

Calls 5

set_domainMethod · 0.45
add_attributeMethod · 0.45
set_cell_orderMethod · 0.45
set_capacityMethod · 0.45
checkMethod · 0.45

Tested by

no test coverage detected