Trait malachite_base::num::arithmetic::traits::SubMulAssign
source · [−]pub trait SubMulAssign<Y = Self, Z = Self> {
fn sub_mul_assign(&mut self, y: Y, z: Z);
}
Expand description
Subtracts a number by the product of two other numbers, in place.
Required Methods
fn sub_mul_assign(&mut self, y: Y, z: Z)
Implementations on Foreign Types
sourceimpl SubMulAssign<u8, u8> for u8
impl SubMulAssign<u8, u8> for u8
sourcefn sub_mul_assign(&mut self, y: u8, z: u8)
fn sub_mul_assign(&mut self, y: u8, z: u8)
Subtracts a number by the product of two other numbers in place.
$x \gets x - yz$.
Worst-case complexity
Constant time and additional memory.
Examples
See here.
sourceimpl SubMulAssign<u16, u16> for u16
impl SubMulAssign<u16, u16> for u16
sourcefn sub_mul_assign(&mut self, y: u16, z: u16)
fn sub_mul_assign(&mut self, y: u16, z: u16)
Subtracts a number by the product of two other numbers in place.
$x \gets x - yz$.
Worst-case complexity
Constant time and additional memory.
Examples
See here.
sourceimpl SubMulAssign<u32, u32> for u32
impl SubMulAssign<u32, u32> for u32
sourcefn sub_mul_assign(&mut self, y: u32, z: u32)
fn sub_mul_assign(&mut self, y: u32, z: u32)
Subtracts a number by the product of two other numbers in place.
$x \gets x - yz$.
Worst-case complexity
Constant time and additional memory.
Examples
See here.
sourceimpl SubMulAssign<u64, u64> for u64
impl SubMulAssign<u64, u64> for u64
sourcefn sub_mul_assign(&mut self, y: u64, z: u64)
fn sub_mul_assign(&mut self, y: u64, z: u64)
Subtracts a number by the product of two other numbers in place.
$x \gets x - yz$.
Worst-case complexity
Constant time and additional memory.
Examples
See here.
sourceimpl SubMulAssign<u128, u128> for u128
impl SubMulAssign<u128, u128> for u128
sourcefn sub_mul_assign(&mut self, y: u128, z: u128)
fn sub_mul_assign(&mut self, y: u128, z: u128)
Subtracts a number by the product of two other numbers in place.
$x \gets x - yz$.
Worst-case complexity
Constant time and additional memory.
Examples
See here.
sourceimpl SubMulAssign<usize, usize> for usize
impl SubMulAssign<usize, usize> for usize
sourcefn sub_mul_assign(&mut self, y: usize, z: usize)
fn sub_mul_assign(&mut self, y: usize, z: usize)
Subtracts a number by the product of two other numbers in place.
$x \gets x - yz$.
Worst-case complexity
Constant time and additional memory.
Examples
See here.
sourceimpl SubMulAssign<i8, i8> for i8
impl SubMulAssign<i8, i8> for i8
sourcefn sub_mul_assign(&mut self, y: i8, z: i8)
fn sub_mul_assign(&mut self, y: i8, z: i8)
Subtracts a number by the product of two other numbers in place.
$x \gets x - yz$.
Worst-case complexity
Constant time and additional memory.
Examples
See here.
sourceimpl SubMulAssign<i16, i16> for i16
impl SubMulAssign<i16, i16> for i16
sourcefn sub_mul_assign(&mut self, y: i16, z: i16)
fn sub_mul_assign(&mut self, y: i16, z: i16)
Subtracts a number by the product of two other numbers in place.
$x \gets x - yz$.
Worst-case complexity
Constant time and additional memory.
Examples
See here.
sourceimpl SubMulAssign<i32, i32> for i32
impl SubMulAssign<i32, i32> for i32
sourcefn sub_mul_assign(&mut self, y: i32, z: i32)
fn sub_mul_assign(&mut self, y: i32, z: i32)
Subtracts a number by the product of two other numbers in place.
$x \gets x - yz$.
Worst-case complexity
Constant time and additional memory.
Examples
See here.
sourceimpl SubMulAssign<i64, i64> for i64
impl SubMulAssign<i64, i64> for i64
sourcefn sub_mul_assign(&mut self, y: i64, z: i64)
fn sub_mul_assign(&mut self, y: i64, z: i64)
Subtracts a number by the product of two other numbers in place.
$x \gets x - yz$.
Worst-case complexity
Constant time and additional memory.
Examples
See here.
sourceimpl SubMulAssign<i128, i128> for i128
impl SubMulAssign<i128, i128> for i128
sourcefn sub_mul_assign(&mut self, y: i128, z: i128)
fn sub_mul_assign(&mut self, y: i128, z: i128)
Subtracts a number by the product of two other numbers in place.
$x \gets x - yz$.
Worst-case complexity
Constant time and additional memory.
Examples
See here.
sourceimpl SubMulAssign<isize, isize> for isize
impl SubMulAssign<isize, isize> for isize
sourcefn sub_mul_assign(&mut self, y: isize, z: isize)
fn sub_mul_assign(&mut self, y: isize, z: isize)
Subtracts a number by the product of two other numbers in place.
$x \gets x - yz$.
Worst-case complexity
Constant time and additional memory.
Examples
See here.
sourceimpl SubMulAssign<f32, f32> for f32
impl SubMulAssign<f32, f32> for f32
sourcefn sub_mul_assign(&mut self, y: f32, z: f32)
fn sub_mul_assign(&mut self, y: f32, z: f32)
Subtracts a number by the product of two other numbers in place.
$x \gets x - yz$.
Worst-case complexity
Constant time and additional memory.
Examples
See here.
sourceimpl SubMulAssign<f64, f64> for f64
impl SubMulAssign<f64, f64> for f64
sourcefn sub_mul_assign(&mut self, y: f64, z: f64)
fn sub_mul_assign(&mut self, y: f64, z: f64)
Subtracts a number by the product of two other numbers in place.
$x \gets x - yz$.
Worst-case complexity
Constant time and additional memory.
Examples
See here.