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

Function schema_4x4

nodedb-array/src/tile/dense_tile.rs:82–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80 use crate::types::domain::{Domain, DomainBound};
81
82 fn schema_4x4() -> ArraySchema {
83 ArraySchemaBuilder::new("g")
84 .dim(DimSpec::new(
85 "x",
86 DimType::Int64,
87 Domain::new(DomainBound::Int64(0), DomainBound::Int64(3)),
88 ))
89 .dim(DimSpec::new(
90 "y",
91 DimType::Int64,
92 Domain::new(DomainBound::Int64(0), DomainBound::Int64(3)),
93 ))
94 .attr(AttrSpec::new("v", AttrType::Int64, true))
95 .tile_extents(vec![4, 4])
96 .build()
97 .unwrap()
98 }
99
100 #[test]
101 fn cells_per_tile_is_product_of_extents() {

Callers 1

Calls 4

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

Tested by 1