TRIQS / nda

C++ library for multi-dimensional arrays
https://triqs.github.io/nda
Other
13 stars 11 forks source link

Compute the matrix inverse for a stack of matrices (broadcast inverse) #31

Open harrisonlabollita opened 1 year ago

harrisonlabollita commented 1 year ago

In this PR, we've added an additional inverse method that takes a stack of matrices (M, N, N) and computes the inverse on the M matrices of size NxN. This is analogous to the numpy.linalg.inv. Tests and benchmarks included.