helayers::NativeFunctionEvaluator Class Reference

Class for holding functions supplied directly by underlying schemes. More...

#include <NativeFunctionEvaluator.h>

Public Member Functions

 NativeFunctionEvaluator (HeContext &he)
 Constructs a ready to use object. More...
 
 NativeFunctionEvaluator (const NativeFunctionEvaluator &src)=delete
 Copy constructor deleted. Construct new objects when needed.
 
NativeFunctionEvaluatoroperator= (const NativeFunctionEvaluator &src)=delete
 Assignment deleted. Construct new objects when needed.
 
void powerInPlace (CTile &c, int p) const
 Raises every slot in given CTile to the power of p. More...
 
void totalProduct (CTile &result, const std::vector< CTile > &multiplicands) const
 Compute product of given vector of CTiles elementwise. More...
 

Detailed Description

Class for holding functions supplied directly by underlying schemes.

Constructor & Destructor Documentation

◆ NativeFunctionEvaluator()

helayers::NativeFunctionEvaluator::NativeFunctionEvaluator ( HeContext he)

Constructs a ready to use object.

Parameters
[in]hethe underlying context.

Member Function Documentation

◆ powerInPlace()

void helayers::NativeFunctionEvaluator::powerInPlace ( CTile c,
int  p 
) const

Raises every slot in given CTile to the power of p.

Parameters
[in/out]c CTile to work on
[in]ppower to raise by

◆ totalProduct()

void helayers::NativeFunctionEvaluator::totalProduct ( CTile result,
const std::vector< CTile > &  multiplicands 
) const

Compute product of given vector of CTiles elementwise.

Does so in a depth-efficient manner.

Parameters
[out]resultCTile to store result
[in]multiplicandsvector of CTiles to multiply together.

The documentation for this class was generated from the following files:
  • /opt/IBM/FHE-distro/ML-HElib/src/helayers/hebase/NativeFunctionEvaluator.h
  • /opt/IBM/FHE-distro/ML-HElib/src/helayers/hebase/NativeFunctionEvaluator.cpp