OpenMined / TenSEAL

A library for doing homomorphic encryption operations on tensors
Apache License 2.0
805 stars 155 forks source link

Rotate Vector through tensor API #122

Open Christopher-Wang opened 4 years ago

Christopher-Wang commented 4 years ago

Feature Description

It would be nice to expose the rotate vector function through the tensor API. This would provide users with a more intuitive method of rotating vectors as opposed to having to do so through the sealapi evaluator object.

Is your feature request related to a problem?

This feature would make it easier to test out algorithms that require rotations to function (such has efficient encrypted matrix multiplications).

What alternatives have you considered?

Users could continue to use the sealapi evaluator object however this is clunky and unintuitive to the current design principle of abstracting away the evaluator.

Additional Context

I've already made the necessary changes to try to do so with the CKKS vector that is ready to be code checked.

youben11 commented 4 years ago

Hi @Christopher-Wang , if you already have the changes locally, please open a PR for review directly, otherwise, we should be able to provide this feature in a few days.