triu_to_full function

Expands upper triangular to full matrix.

Expands upper triangular to full matrix.

triu_to_full(upper_tri, n)

Arguments

  • upper_tri: A matrix representing the uppertriangular part of the matrix, stacked in column-major order
  • n: The number of rows (columns) in the full square matrix.

Returns

A matrix that is the scaled expansion of the upper triangular matrix.

  • Maintainer: Anqi Fu
  • License: Apache License 2.0 | file LICENSE
  • Last published: 2024-11-07