Function libwalrus::permanent_fsum¶
Defined in File permanent.hpp
Function Documentation¶
-
double
libwalrus
::
permanent_fsum
(std::vector<double> &mat)¶ Returns the permanent of a matrix using Ryser’s algo with Gray code ordering with fsum
This is a wrapper around the templated function
libwalrus::perm_fsum
for Python integration. It accepts and returns double numeric types, and returns sensible values for empty and non-even matrices.- Return
the permanent
- Parameters
mat
: vector representing the flattened matrix
libwalrus_cpp_api/function_namespacelibwalrus_1ab0291575a178a85290a4ad3e4cd471dc
Download Python script
Download Notebook
View on GitHub
Contents
Downloads