Sync public subset from Flux (private)

This commit is contained in:
Gitea CI
2025-10-06 20:14:13 +00:00
parent 272e77c536
commit b2d00af0e1
390 changed files with 152131 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
#pragma once
#include "./decomp/lu.h"
namespace numerics{
template <typename T>
void inplace_inverse_lu(utils::Matrix<T>& A){
if (A.rows() != A.cols()){
throw std::runtime_error("numerics inverse_lu: non-square matrix");
}
decomp::LUdcmp<T> lu(A);
lu.inplace_inverse(A);
}
}