Realm

oa::crypto::bigint::subtract_scalar

Compute public-data subtract_scalar on unsigned device limb rows. Operands are public rank-two U32 rows of little-endian limbs, with 1..=128 words (32..=4096 bits). Records device work without host reads or a host wait. This public-data route does not accept cryptographic secrets and makes no constant-time or performance claim. Unsigned scalar arithmetic wraps within the complete declared limb width. Errors Rejects rank, dtype, shape, ownership, address limits, allocation or recording failures.

FnRust public API

Function Documentation

pub fn subtract_scalar( left: &Matrix, scalar: u32 ) -> Result<Matrix>
Compute public-data subtract_scalar on unsigned device limb rows. Operands are public rank-two U32 rows of little-endian limbs, with 1..=128 words (32..=4096 bits). Records device work without host reads or a host wait. This public-data route does not accept cryptographic secrets and makes no constant-time or performance claim. Unsigned scalar arithmetic wraps within the complete declared limb width. Errors Rejects rank, dtype, shape, ownership, address limits, allocation or recording failures.