MakeSym {manifold}R Documentation

Make a symmetric matrix by specifying a near-symmetric matrix M, or the lower triangular elements lowerTri with diagonal.

Description

Make a symmetric matrix by specifying a near-symmetric matrix M, or the lower triangular elements lowerTri with diagonal.

Usage

MakeSym(M, lowerTri, doubleDiag = FALSE)

Arguments

M

A near-symmetric matrix

lowerTri

A vector containing the lower triangular elements of the matrix. This is an alternative way to specify the matrix.

doubleDiag

Only meaningful for lowerTri is not missing. Whether the diagonal elements should be multiplied by sqrt(2) for doubling the squared norm of the lower triangle

Value

A symmetric matrix


[Package manifold version 0.1.1 Index]