Symmetric Matrix

Creates an upper triangular square matrix from a vector.

1 | ```
triang( v, n )
``` |

`v` |
vector |

`n` |
desired dimension of the returned square matrix |

If the vector has less elements than the upper triangular matrix, the last elements are set to zero.

Arne Henningsen

1 2 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.