all_crossterms function

Create crossterms from two matrices

Create crossterms from two matrices

A helper function for G_generate that produces cross-terms.

all_crossterms(Z_i, Z_j, make_sparse = TRUE)

Arguments

  • Z_i: Matrix
  • Z_j: Matrix
  • make_sparse: Boolean for whether to output a sparse matrix. Default is TRUE.

Returns

Matrix of cross-terms between Z_i and Z_j.

  • Maintainer: Erjia Cui
  • License: GPL (>= 3)
  • Last published: 2025-03-13