num::symmetric_part¶ Defined in header <linear/sparse/sparse.hpp> spmat symmetric_part(const spmat &A); Compute the symmetric part of a square matrix: \((A + A^T) / 2\). Exceptions¶ std::invalid_argument: If A is not square.