num::symmetric_part¶
Defined in header <linear/sparse/sparse.hpp>
Compute \((A + A^{T})/2\), the symmetric part of a square matrix.
Parameters¶
A: Square CSR matrix.
Return value¶
CSR matrix whose pattern is that of A unioned with its transpose.
Exceptions¶
std::invalid_argument: IfAis not square.