MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / schema_2d

Function schema_2d

nodedb-array/src/coord/normalize.rs:136–152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

134 use crate::types::domain::Domain;
135
136 fn schema_2d() -> ArraySchema {
137 ArraySchemaBuilder::new("g")
138 .dim(DimSpec::new(
139 "x",
140 DimType::Int64,
141 Domain::new(DomainBound::Int64(0), DomainBound::Int64(100)),
142 ))
143 .dim(DimSpec::new(
144 "y",
145 DimType::Int64,
146 Domain::new(DomainBound::Int64(0), DomainBound::Int64(100)),
147 ))
148 .attr(AttrSpec::new("v", AttrType::Int64, false))
149 .tile_extents(vec![10, 10])
150 .build()
151 .unwrap()
152 }
153
154 #[test]
155 fn bits_per_dim_distributes_64() {

Calls 4

buildMethod · 0.45
tile_extentsMethod · 0.45
attrMethod · 0.45
dimMethod · 0.45