create_J_matrix function

Create a special matrix J

Create a special matrix J

create_J_matrix generates a d x dp matrix J, where the first d x d block is the identity matrix I_d, and the rest is filled with zeros.

create_J_matrix(d, p)

Arguments

  • d: An integer representing the dimension of the identity matrix.
  • p: An integer representing the factor by which to extend the matrix with zeros.

Returns

A dxdpd x dp matrix JJ where the first dxdd x d block is the identity matrix IdI_d, and the rest is filled with zeros.

  • Maintainer: Savi Virolainen
  • License: GPL-3
  • Last published: 2025-02-27