Method

NumCosmoMathMatrixsquare_to_sym

Declaration [src]

void
ncm_matrix_square_to_sym (
  NcmMatrix* cm,
  gchar NT,
  gchar UL,
  NcmMatrix* sym
)

Description [src]

Computes the symmetric matrix $M^\intercal \times M$ if NT == ‘T’ or $M\times M^\intercal$ if NT == ‘N’. The result is stored in the upper/lower triangle if UL=’U’/’L’.

Parameters

NT

Type: gchar

Char indicating ‘N’ or ‘T’.

UL

Type: gchar

Char indicating ‘U’pper or ‘L’ower matrix.

sym

Type: NcmMatrix

A NcmMatrix to store the result.

The data is owned by the caller of the method.