NativeFunctionEvaluator#

class NativeFunctionEvaluator#

Class for holding functions supplied directly by underlying schemes.

power_in_place(self: pyhelayers.NativeFunctionEvaluator, c: pyhelayers.CTile, p: int) None#

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

Parameters:
  • c – CTile to work on.

  • p (int) – power to raise by.

total_product(self: pyhelayers.NativeFunctionEvaluator, v: pyhelayers.CTileVector, he: pyhelayers.HeContext) pyhelayers.CTile#

Compute product of given vector of CTiles elementwise. Does so in a depth-efficient manner.

Parameters:
  • v (CTileVector) – Vector of CTiles to multiply together.

  • he – The HeContext.

Returns:

The multiplication result.

Return type:

CTile