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

Function create_float32_array

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

Source from the content-addressed store, hash-verified

70}
71
72void create_float32_array(Context ctx, const std::string& array_name) {
73 Domain domain(ctx);
74 auto d1 = Dimension::create<float>(ctx, "d1", {{0.0, 1.0}});
75 auto d2 = Dimension::create<float>(ctx, "d2", {{0.0, 2.0}});
76 domain.add_dimensions(d1, d2);
77 auto a = Attribute::create<int32_t>(ctx, "a");
78 ArraySchema schema(ctx, TILEDB_SPARSE);
79 schema.set_domain(domain);
80 schema.add_attribute(a);
81 schema.set_cell_order(TILEDB_HILBERT);
82 schema.set_capacity(2);
83 CHECK_NOTHROW(schema.check());
84 Array::create(array_name, schema);
85}
86
87void create_string_array(Context ctx, const std::string& array_name) {
88 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