@explode |

Square matrix from a sym matrix.

Syntax: @explode(s)

s: sym

Return: matrix

Creates a square matrix from a sym s, by duplicating the lower triangle elements into the upper triangle.

Examples

Let S be a sym object. Then

matrix m = @explode(s)

creates M, a matrix object whose size and elements are identical to those of S.

Cross-references