Skip to content

Commit

Permalink
unary
Browse files Browse the repository at this point in the history
  • Loading branch information
lehner committed Sep 17, 2024
1 parent 335ccb5 commit 75d7332
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cgpt/lib/lattice/unary.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ void cgpt_unary_from(Lattice<T>& dst, const Lattice<T>& src, PyObject* params) {
ASSERT(PyDict_Check(params));
auto op = get_str(params,"operator");
if (op == "imag") {
dst = imag(src);
dst = cgpt_imag(src);
} else if (op == "real") {
dst = real(src);
dst = cgpt_real(src);
} else if (op == "abs") {
dst = cgpt_abs(src);
} else if (op == "sqrt") {
Expand Down

0 comments on commit 75d7332

Please sign in to comment.