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

Function add_aligned_cells

nodedb-array/src/query/elementwise.rs:186–194  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

184
185 #[test]
186 fn add_aligned_cells() {
187 let s = schema();
188 let a = tile(&[(0, 1), (1, 2)]);
189 let b = tile(&[(0, 10), (1, 20)]);
190 let out = elementwise(&s, &a, &b, BinaryOp::Add).unwrap();
191 assert_eq!(out.nnz(), 2);
192 assert_eq!(out.attr_cols[0][0], CellValue::Int64(11));
193 assert_eq!(out.attr_cols[0][1], CellValue::Int64(22));
194 }
195
196 #[test]
197 fn outer_join_propagates_null() {

Callers

nothing calls this directly

Calls 3

elementwiseFunction · 0.85
schemaFunction · 0.70
tileFunction · 0.70

Tested by

no test coverage detected