@implodeu |

Create sym from upper triangle of square matrix

Syntax: @implodeu(m)

m: matrix

Return: sym

Forms a sym by copying the upper triangle of a square input matrix, m. Note that this function does not check for symmetry.

Examples

Let M be a (square) matrix object. Then

sym s = @implodeu(m)

creates S, a sym object whose upper triangle is identical to that of M.

Cross-references