Template Function libwalrus::torontonian_fsum¶
Defined in File torontonian.hpp
Function Documentation¶
-
template<typename
T
>
doublelibwalrus
::
torontonian_fsum
(std::vector<T> &mat)¶ Computes the Torontonian of an input matrix using the Shewchuck algorithm, a significantly more accurate summation algorithm.
Note that the fsum implementation currently only allows for double precision, and precludes use of OpenMP parallelization.
Note: if the output is NaN, that means that the input matrix does not have a Torontonian with physical meaning.
- Return
Torontonian of the input matrix
- Parameters
mat
: flattened vector of size \(n^2\), representing an \(n\times n\) row-ordered symmetric matrix.
libwalrus_cpp_api/function_namespacelibwalrus_1af718c343f4c6883f37cca275b19e886f
Download Python script
Download Notebook
View on GitHub
Contents
Downloads