symmetrize: symmetrize

Description Usage Arguments Details Value

Description

Make a matrix-like object symmetric.

Usage

1
symmetrize(x, triangle = "u")

Arguments

x

A matrix-like object.

triangle

A single character, either "u" or "l" for upper or lower, respectively. This determines which triangle is preserved. The default is the upper triangle. Case is ignored.

Details

For a matrix input, we use a block algorithm.

Value

A matrix-like object of the same type as the input.


wrathematics/band documentation built on May 4, 2019, 9:48 a.m.