| 131 | } |
| 132 | |
| 133 | fn schema() -> crate::schema::ArraySchema { |
| 134 | ArraySchemaBuilder::new("g") |
| 135 | .dim(DimSpec::new( |
| 136 | "x", |
| 137 | DimType::Int64, |
| 138 | Domain::new(DomainBound::Int64(0), DomainBound::Int64(15)), |
| 139 | )) |
| 140 | .dim(DimSpec::new( |
| 141 | "y", |
| 142 | DimType::Int64, |
| 143 | Domain::new(DomainBound::Int64(0), DomainBound::Int64(15)), |
| 144 | )) |
| 145 | .attr(AttrSpec::new("v", AttrType::Int64, true)) |
| 146 | .tile_extents(vec![4, 4]) |
| 147 | .build() |
| 148 | .unwrap() |
| 149 | } |
| 150 | |
| 151 | fn sparse_tile(s: &crate::schema::ArraySchema) -> SparseTile { |
| 152 | let mut b = SparseTileBuilder::new(s); |