Skip to content

Commit

Permalink
Added assertion in tensors.h for array conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjosegarciaripoll committed Nov 27, 2024
1 parent 2b66b6b commit 625509d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/seemps/state/tensors.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ void load_scipy_wrappers();
std::complex<double> array_vdot(const py::object &A, const py::object &B);

inline PyArrayObject *to_array(const py::object &a) {
assert(PyArray_Check(a.ptr()));
return reinterpret_cast<PyArrayObject *>(a.ptr());
}

Expand Down

0 comments on commit 625509d

Please sign in to comment.