Template Function libwalrus::perm_fsum¶
Defined in File permanent.hpp
Function Documentation¶
-
template<typename
T
>
doublelibwalrus
::
perm_fsum
(std::vector<T> &mat)¶ Returns the permanent of an matrix using fsum.
Returns the permanent of a matrix using Ryser’s algorithm with Gray code ordering.
- Return
permanent of the input matrix
- Parameters
mat
: a flattened vector of size \(n^2\), representing an \(n\times n\) row-ordered symmetric matrix.
libwalrus_cpp_api/function_namespacelibwalrus_1a0298f005effed3f7a0393ba51bbadb46
Download Python script
Download Notebook
View on GitHub
Contents
Downloads