Scythe-1.0.3
template<matrix_order RO, matrix_style RS, typename T , matrix_order PO, matrix_style PS>
Matrix<T, RO, RS> scythe::xpnd ( const Matrix< T, PO, PS > &  v)

Expand a vector into a symmetric Matrix.

This function takes the vector v and returns a symmetric Matrix containing the elements of v within each triangle.

Parameters:
\av The vector expand.
See also:
vech(const Matrix<T,PO,PS>& M)
Exceptions:
scythe_dimension_error(Level 1)
scythe_alloc_error(Level 1)

References fmod(), SCYTHE_CHECK_10, scythe::Matrix_base< ORDER, STYLE >::size(), and sqrt().