Skip to content

Commit

Permalink
Mend typo on PyCtxt.pyx
Browse files Browse the repository at this point in the history
  • Loading branch information
ibarrond authored Jun 26, 2023
1 parent 105b0dd commit 0a6e608
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Pyfhel/PyCtxt.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ cdef class PyCtxt:
(np.issubdtype(other.dtype, np.number)):
if self.scheme == Scheme_t.bfv:
return self._pyfhel.encodeInt(other.astype(np.int64)[:nslots])
elig self.scheme == Scheme_t.bgv:
elif self.scheme == Scheme_t.bgv:
return self._pyfhel.encodeBGV(other.astype(np.int64)[:nslots])
elif self.scheme == Scheme_t.ckks:
if np.issubdtype(other.dtype, np.complexfloating):
Expand Down Expand Up @@ -866,4 +866,4 @@ cdef class PyCtxt:
# buffer.suboffsets = NULL # for pointer arrays only

# def __releasebuffer__(self, Py_buffer *buffer):
# pass
# pass

0 comments on commit 0a6e608

Please sign in to comment.