Trait malachite_base::num::arithmetic::traits::CeilingSqrtAssign
source · [−]pub trait CeilingSqrtAssign {
fn ceiling_sqrt_assign(&mut self);
}
Expand description
Replaces a number with the ceiling of its square root.
Required Methods
fn ceiling_sqrt_assign(&mut self)
Implementations on Foreign Types
sourceimpl CeilingSqrtAssign for u8
impl CeilingSqrtAssign for u8
sourcefn ceiling_sqrt_assign(&mut self)
fn ceiling_sqrt_assign(&mut self)
Replaces an integer with the ceiling of its square root.
$x \gets \lceil\sqrt{x}\rceil$.
Worst-case complexity
Constant time and additional memory.
Panics
Panics if self
is negative.
Examples
See here.
sourceimpl CeilingSqrtAssign for u16
impl CeilingSqrtAssign for u16
sourcefn ceiling_sqrt_assign(&mut self)
fn ceiling_sqrt_assign(&mut self)
Replaces an integer with the ceiling of its square root.
$x \gets \lceil\sqrt{x}\rceil$.
Worst-case complexity
Constant time and additional memory.
Panics
Panics if self
is negative.
Examples
See here.
sourceimpl CeilingSqrtAssign for u32
impl CeilingSqrtAssign for u32
sourcefn ceiling_sqrt_assign(&mut self)
fn ceiling_sqrt_assign(&mut self)
Replaces an integer with the ceiling of its square root.
$x \gets \lceil\sqrt{x}\rceil$.
Worst-case complexity
Constant time and additional memory.
Panics
Panics if self
is negative.
Examples
See here.
sourceimpl CeilingSqrtAssign for u64
impl CeilingSqrtAssign for u64
sourcefn ceiling_sqrt_assign(&mut self)
fn ceiling_sqrt_assign(&mut self)
Replaces an integer with the ceiling of its square root.
$x \gets \lceil\sqrt{x}\rceil$.
Worst-case complexity
Constant time and additional memory.
Panics
Panics if self
is negative.
Examples
See here.
sourceimpl CeilingSqrtAssign for u128
impl CeilingSqrtAssign for u128
sourcefn ceiling_sqrt_assign(&mut self)
fn ceiling_sqrt_assign(&mut self)
Replaces an integer with the ceiling of its square root.
$x \gets \lceil\sqrt{x}\rceil$.
Worst-case complexity
Constant time and additional memory.
Panics
Panics if self
is negative.
Examples
See here.
sourceimpl CeilingSqrtAssign for usize
impl CeilingSqrtAssign for usize
sourcefn ceiling_sqrt_assign(&mut self)
fn ceiling_sqrt_assign(&mut self)
Replaces an integer with the ceiling of its square root.
$x \gets \lceil\sqrt{x}\rceil$.
Worst-case complexity
Constant time and additional memory.
Panics
Panics if self
is negative.
Examples
See here.
sourceimpl CeilingSqrtAssign for i8
impl CeilingSqrtAssign for i8
sourcefn ceiling_sqrt_assign(&mut self)
fn ceiling_sqrt_assign(&mut self)
Replaces an integer with the ceiling of its square root.
$x \gets \lceil\sqrt{x}\rceil$.
Worst-case complexity
Constant time and additional memory.
Panics
Panics if self
is negative.
Examples
See here.
sourceimpl CeilingSqrtAssign for i16
impl CeilingSqrtAssign for i16
sourcefn ceiling_sqrt_assign(&mut self)
fn ceiling_sqrt_assign(&mut self)
Replaces an integer with the ceiling of its square root.
$x \gets \lceil\sqrt{x}\rceil$.
Worst-case complexity
Constant time and additional memory.
Panics
Panics if self
is negative.
Examples
See here.
sourceimpl CeilingSqrtAssign for i32
impl CeilingSqrtAssign for i32
sourcefn ceiling_sqrt_assign(&mut self)
fn ceiling_sqrt_assign(&mut self)
Replaces an integer with the ceiling of its square root.
$x \gets \lceil\sqrt{x}\rceil$.
Worst-case complexity
Constant time and additional memory.
Panics
Panics if self
is negative.
Examples
See here.
sourceimpl CeilingSqrtAssign for i64
impl CeilingSqrtAssign for i64
sourcefn ceiling_sqrt_assign(&mut self)
fn ceiling_sqrt_assign(&mut self)
Replaces an integer with the ceiling of its square root.
$x \gets \lceil\sqrt{x}\rceil$.
Worst-case complexity
Constant time and additional memory.
Panics
Panics if self
is negative.
Examples
See here.
sourceimpl CeilingSqrtAssign for i128
impl CeilingSqrtAssign for i128
sourcefn ceiling_sqrt_assign(&mut self)
fn ceiling_sqrt_assign(&mut self)
Replaces an integer with the ceiling of its square root.
$x \gets \lceil\sqrt{x}\rceil$.
Worst-case complexity
Constant time and additional memory.
Panics
Panics if self
is negative.
Examples
See here.
sourceimpl CeilingSqrtAssign for isize
impl CeilingSqrtAssign for isize
sourcefn ceiling_sqrt_assign(&mut self)
fn ceiling_sqrt_assign(&mut self)
Replaces an integer with the ceiling of its square root.
$x \gets \lceil\sqrt{x}\rceil$.
Worst-case complexity
Constant time and additional memory.
Panics
Panics if self
is negative.
Examples
See here.