12 #ifndef HELIB_CTPTRS_H
13 #define HELIB_CTPTRS_H
18 #include <initializer_list>
19 #include <helib/Ctxt.h>
20 #include <helib/PtrVector.h>
21 #include <helib/PtrMatrix.h>
46 const std::vector<zzX>& unpackConsts,
51 const std::vector<zzX>& unpackConsts,
56 const std::vector<zzX>& unpackConsts,
58 long belowLvl = LONG_MAX);
66 for (
long i = 0; i < v.
size(); i++)
67 if (v.
isSet(i) && !v[i]->isEmpty())
68 lvl = std::min(lvl, v[i]->bitCapacity());
75 for (
long i = 0; i < m.
size(); i++)
83 for (
auto elem : list)
91 Ctxt ret(ZeroCtxtLike, *v1[0]);
98 #endif // ifndef HELIB_CTPTRS_H
PtrMatrix_Vec< Ctxt > CtPtrMat_VecCt
Definition: CtPtrs.h:39
An implementation of PtrMatrix using vector< vector<T> >
Definition: PtrMatrix.h:167
PtrMatrix_vector< Ctxt > CtPtrMat_vectorCt
Definition: CtPtrs.h:40
An abstract class for an array of PtrVectors.
Definition: PtrMatrix.h:27
PtrMatrix_ptVec< Ctxt > CtPtrMat_ptVecCt
Definition: CtPtrs.h:41
PtrMatrix< Ctxt > CtPtrMat
Definition: CtPtrs.h:38
PtrMatrix_ptvector< Ctxt > CtPtrMat_ptvectorCt
Definition: CtPtrs.h:42
An implementation of PtrMatrix using Vec< Vec<T>* >
Definition: PtrMatrix.h:141
A simple wrapper for a smart pointer to an EncryptedArrayBase. This is the interface that higher-leve...
Definition: EncryptedArray.h:1233
PtrVector_vectorT< Ctxt > CtPtrs_vectorCt
Definition: CtPtrs.h:29
An implementation of PtrMatrix using Vec< Vec<T> >
Definition: PtrMatrix.h:97
An implementation of PtrVector using Vec<T>
Definition: PtrVector.h:208
PtrVector_slice< Ctxt > CtPtrs_slice
Definition: CtPtrs.h:36
PtrVector_VecPt< Ctxt > CtPtrs_VecPt
Definition: CtPtrs.h:31
An implementation of PtrVector using vector<T*>
Definition: PtrVector.h:192
virtual long size() const =0
virtual long size() const =0
PtrVector_vectorPt< Ctxt > CtPtrs_vectorPt
Definition: CtPtrs.h:33
Abstract class for an array of objects.
Definition: PtrVector.h:32
void innerProduct(Ctxt &result, const CtPtrs &v1, const CtPtrs &v2)
Definition: Ctxt.cpp:2318
An implementation of PtrMatrix using vector< vector<T>* >
Definition: PtrMatrix.h:210
Definition: apiAttributes.h:21
bool isSet(long i) const
Definition: PtrVector.h:44
An implementation of PtrVector as a slice of another PtrVector.
Definition: PtrVector.h:277
An implementation of PtrVector using vector<T>
Definition: PtrVector.h:245
An implementation of PtrVector using Vec<T*>
Definition: PtrVector.h:176
PtrVector< Ctxt > CtPtrs
Definition: CtPtrs.h:25
A Ctxt object holds a single ciphertext.
Definition: Ctxt.h:273
void packedRecrypt(const CtPtrs &a, const CtPtrs &b, std::vector< zzX > *unpackSlotEncoding)
Function for packed recryption to recrypt multiple numbers.
Definition: binaryArith.cpp:461
PtrVector_VecT< Ctxt > CtPtrs_VecCt
Definition: CtPtrs.h:27
long findMinBitCapacity(const CtPtrs &v)
Definition: CtPtrs.h:63