@qe-libs/libqe-wasm 0.1.2 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -94,6 +94,7 @@ Access a cell: `data[row * cols + col]`
94
94
  | `accumulate_unit(codes, rows, cols, unit_rows, decay_fn, ordered)` | Ground/response accumulation for one unit (tma). `decay_fn(Float64Array) → Float64Array` |
95
95
  | `accumulate_unit_with_rows(codes, rows, cols, unit_rows, decay_fn, ordered)` | Like `accumulate_unit` but also returns per-response-row networks → `{ networks, row_networks }` |
96
96
  | `accumulate_tensor_unit(tensor, dims, dims_sender, dims_receiver, dims_mode, context_lookup, cl_rows, cl_cols, unit_rows, codes, rows, cols, times, ordered)` | tma tensor accumulation for one unit → `{ connection_counts: Float64Array, row_connection_counts: matObj }`. All index arrays are **0-based Int32Array**; `tensor` is flat column-major `Float64Array`; `context_lookup` is row-major `Int32Array (n_context_rows × n_factors)` |
97
+ | `aggregate_row_connections(row_conn, rows, cols, n_codes, ordered, binary)` | Aggregate `accumulate_tensor_unit`'s `row_connection_counts` into a unit vector, matching tma's R aggregation. `ordered=false`: fold each row to `choose(n,2)`, binarize per row when `binary`, then sum. `ordered=true`: directed `n²` column sums (no fold/binarize). `row_conn` is row-major `Float64Array (rows × n_codes²)` |
97
98
 
98
99
  ### Door
99
100
 
package/dist/libqe.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qe-libs/libqe-wasm",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "WebAssembly bindings for libqe — shared C++ core for Quantitative Ethnography",
5
5
  "main": "js/index.js",
6
6
  "type": "module",