Realm

oa::crypto::bigint::reduce_barrett

Reduce double-width public rows using a prepared immutable Barrett snapshot. Returns (output, status): one for success, zero for a zero modulus, two when T is outside the significant-width Barrett bound T < 2^(64*k). Invalid rows produce zero. The prepared modulus may have one shared row. Errors Rejects dtype, shape, ownership, byte extents, allocation or recording failures.

FnRust public API

Function Documentation

pub fn reduce_barrett( left: &Matrix, parameters: &BarrettParameters, ) -> Result<( Matrix, Matrix )>
Reduce double-width public rows using a prepared immutable Barrett snapshot. Returns (output, status): one for success, zero for a zero modulus, two when T is outside the significant-width Barrett bound T < 2^(64*k). Invalid rows produce zero. The prepared modulus may have one shared row. Errors Rejects dtype, shape, ownership, byte extents, allocation or recording failures.