helib::Query_t Struct Reference
Structure containing all information required for an HE query. More...
#include <partialMatch.h>
Public Member Functions | |
Query_t (const std::vector< std::vector< long >> &index_sets, const std::vector< long > &offsets, const std::vector< Matrix< long >> &weights, const bool isThereAnOR) | |
Constructor. More... | |
Query_t (std::vector< std::vector< long >> &&index_sets, std::vector< long > &&offsets, std::vector< Matrix< long >> &&weights, bool isThereAnOR) | |
Constructor. More... | |
Public Attributes | |
std::vector< std::vector< long > > | Fs |
std::vector of index sets. These index sets specify the indexes of the columns in each column subset. More... | |
std::vector< long > | mus |
std::vector of offsets. Each offset is a constant value. There should be a single offset for each index set. More... | |
std::vector< Matrix< long > > | taus |
std::vector of a set of weights. Each weight set corresponds to a single index set where each individual weight corresponds to the index of the index set. More... | |
bool | containsOR = false |
Flag indicating if the query contains a logical OR operation. This is used for optimization purposes. More... | |
Detailed Description
Structure containing all information required for an HE query.
Constructor & Destructor Documentation
◆ Query_t() [1/2]
|
inline |
Constructor.
- Parameters
-
index_sets The set of column subsets. offsets The set of offset constants. weights The set of weight sets. isThereAnOR Boolean value indicating if the query contains an OR operation.
◆ Query_t() [2/2]
|
inline |
Constructor.
- Parameters
-
index_sets The set of column subsets. offsets The set of offset constants. weights The set of weight sets. isThereAnOR Boolean value indicating if the query contains an OR operation.
Member Data Documentation
◆ containsOR
bool helib::Query_t::containsOR = false |
Flag indicating if the query contains a logical OR operation. This is used for optimization purposes.
◆ Fs
std::vector<std::vector<long> > helib::Query_t::Fs |
std::vector
of index sets. These index sets specify the indexes of the columns in each column subset.
◆ mus
std::vector<long> helib::Query_t::mus |
std::vector
of offsets. Each offset is a constant value. There should be a single offset for each index set.
◆ taus
std::vector<Matrix<long> > helib::Query_t::taus |
std::vector
of a set of weights. Each weight set corresponds to a single index set where each individual weight corresponds to the index of the index set.