|
|
@@ -1,4 +1,5 @@
|
|
|
#include "DCRTPoly.h"
|
|
|
+#include "openfhe/src/lib.rs.h"
|
|
|
|
|
|
namespace openfhe
|
|
|
{
|
|
|
@@ -21,4 +22,11 @@ std::unique_ptr<DCRTPolyParams> DCRTPolyGenNullParams()
|
|
|
return std::make_unique<DCRTPolyParams>();
|
|
|
}
|
|
|
|
|
|
+std::unique_ptr<DCRTPolyImpl> DCRTPolyGenFromDug(const ILDCRTParams& params)
|
|
|
+{
|
|
|
+ std::shared_ptr<ILDCRTParams> params_ptr = std::make_shared<ILDCRTParams>(params);
|
|
|
+ typename DCRTPolyImpl::DugType dug;
|
|
|
+ return std::make_unique<DCRTPolyImpl>(dug, params_ptr, Format::COEFFICIENT);
|
|
|
+}
|
|
|
+
|
|
|
} // openfhe
|