| 387 | use crate::types::domain::{Domain, DomainBound}; |
| 388 | |
| 389 | fn schema() -> crate::schema::ArraySchema { |
| 390 | ArraySchemaBuilder::new("g") |
| 391 | .dim(DimSpec::new( |
| 392 | "x", |
| 393 | DimType::Int64, |
| 394 | Domain::new(DomainBound::Int64(0), DomainBound::Int64(15)), |
| 395 | )) |
| 396 | .dim(DimSpec::new( |
| 397 | "y", |
| 398 | DimType::Int64, |
| 399 | Domain::new(DomainBound::Int64(0), DomainBound::Int64(15)), |
| 400 | )) |
| 401 | .attr(AttrSpec::new("v", AttrType::Int64, true)) |
| 402 | .tile_extents(vec![4, 4]) |
| 403 | .build() |
| 404 | .unwrap() |
| 405 | } |
| 406 | |
| 407 | fn make_sparse(s: &crate::schema::ArraySchema, base: i64) -> SparseTile { |
| 408 | let mut b = SparseTileBuilder::new(s); |