DeepAI
Log In Sign Up

A faster hafnian formula for complex matrices and its benchmarking on the Titan supercomputer

05/31/2018
by   Andreas Björklund, et al.
0

We introduce new and simple algorithms for the calculation of the number of perfect matchings of complex weighted, undirected graphs with and without loops. Our compact formulas for the hafnian and loop hafnian of n × n complex matrices run in O(n^3 2^n/2) time, are embarrassingly parallelizable and, to the best of our knowledge, are the fastest exact algorithms to compute these quantities. Despite our highly optimized algorithm, numerical benchmarks on the Titan supercomputer with matrices up to size 56 × 56 indicate that one would require the 288,000 CPUs of this machine for about a month and a half to compute the hafnian of a 100 × 100 matrix.

READ FULL TEXT

page 1

page 2

page 3

page 4

06/12/2019

Run-Time Efficient RNN Compression for Inference on Edge Devices

Recurrent neural networks can be large and compute-intensive, yet many a...
12/21/2017

A non-commutative algorithm for multiplying (7 × 7) matrices using 250 multiplications

We present a non-commutative algorithm for multiplying (7x7) matrices us...
05/01/2019

RedisGraph GraphBLAS Enabled Graph Database

RedisGraph is a Redis module developed by Redis Labs to add graph databa...
07/20/2020

Mixed Moments for the Product of Ginibre Matrices

We study the ensemble of a product of n complex Gaussian i.i.d. matrices...
07/31/2018

A simple analysis of flying capacitor converter

The paper aims to emphasise how switched systems can be analysed with el...
06/21/2021

Multiplying Matrices Without Multiplying

Multiplying matrices is among the most fundamental and compute-intensive...
12/03/2013

A compact formula for the derivative of a 3-D rotation in exponential coordinates

We present a compact formula for the derivative of a 3-D rotation matrix...

Code Repositories

hafnian

Calculation of Hafnians for real and complex matrices


view repo