Skip to contents

`r lifecycle::badge("deprecated")`

`apply_tensor_old` is a deprecated alias for the tensor-based accumulation function. Use [accumulate()] for the full TMA accumulation pipeline.

Usage

apply_tensor_old(
  tensor,
  dims,
  dims_sender,
  dims_receiver,
  dims_mode,
  context_matrix,
  unit_rows,
  codes,
  times,
  ordered = TRUE
)

Arguments

tensor

NumericVector. Flat multi-dimensional context_tensor array.

dims

IntegerVector. Dimensions of the original context_tensor array.

dims_sender

Integer vector. 0-based indices of sender dimensions.

dims_receiver

Integer vector. 0-based indices of receiver dimensions.

dims_mode

Integer vector. 0-based indices of mode dimensions.

context_matrix

NumericMatrix. Context lookup matrix (rows = context lines, cols = factors).

unit_rows

Integer vector. 0-based response-row indices for this unit.

codes

Numeric matrix. Code matrix (nrow = context lines, ncol = number of codes).

times

Numeric vector. Timestamp per context row.

ordered

Logical. TRUE = directed; FALSE = undirected upper-triangle.

Value

List with row_connection_counts and connection_counts.