RotationKeys genRotationKeysForRotations()

in src/latticpp/ckks/keygen.cpp [28:35]


    RotationKeys genRotationKeysForRotations(const KeyGenerator &keygen, const SecretKey &sk, vector<int> shifts) {
        // convert from variable-sized int to fixed-size SIGNED int64_t
        vector<int64_t> fixed_width_shifts(shifts.size());
        for (int i = 0; i < shifts.size(); i++) {
            fixed_width_shifts[i] = static_cast<int64_t>(shifts[i]);
        }
        return RotationKeys(lattigo_genRotationKeysForRotations(keygen.getRawHandle(), sk.getRawHandle(), fixed_width_shifts.data(), shifts.size()));
    }