Convert vector of linear independent values into a Matrix

Returns the position of the [`i`

,`j`

]th element of a symmetric
`n`

*x* `n`

matrix that this element has in a vector
of the linear independent values of the matrix.

1 | ```
veclipos( i, j, n )
``` |

`i` |
row of the element in the matrix. |

`j` |
column of the element in the matrix. |

`n` |
dimension of the matrix. |

A symmetric `n`

*x* `n`

matrix has n*(n+1)/2
independent values.

The function is: n*(n-1)/2-((n-min(i,j))*(n-min(i,j)+1)/2)+max(i,j)

Arne Henningsen

1 | ```
veclipos( 1, 2, 3 ) # returns: 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.