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

Function tile

nodedb-array/src/query/elementwise.rs:175–183  ·  view source on GitHub ↗
(rows: &[(i64, i64)])

Source from the content-addressed store, hash-verified

173 }
174
175 fn tile(rows: &[(i64, i64)]) -> SparseTile {
176 let s = schema();
177 let mut b = SparseTileBuilder::new(&s);
178 for (k, v) in rows {
179 b.push(&[CoordValue::Int64(*k)], &[CellValue::Int64(*v)])
180 .unwrap();
181 }
182 b.build()
183 }
184
185 #[test]
186 fn add_aligned_cells() {

Callers 4

add_aligned_cellsFunction · 0.70
div_by_zero_returns_nullFunction · 0.70
sub_and_mulFunction · 0.70

Calls 3

schemaFunction · 0.70
pushMethod · 0.45
buildMethod · 0.45

Tested by 4

add_aligned_cellsFunction · 0.56
div_by_zero_returns_nullFunction · 0.56
sub_and_mulFunction · 0.56