Add complex eigh (#2191)

This commit is contained in:
Angelos Katharopoulos
2025-05-18 00:18:43 -07:00
committed by GitHub
parent 48ef3e74e2
commit 0654543dcc
5 changed files with 190 additions and 55 deletions

View File

@@ -224,6 +224,10 @@ class array {
// Not copyable
Data(const Data& d) = delete;
Data& operator=(const Data& d) = delete;
Data(Data&& o) : buffer(o.buffer), d(o.d) {
o.buffer = allocator::Buffer(nullptr);
o.d = [](allocator::Buffer) {};
}
~Data() {
d(buffer);
}