pub type c128 = Complex<f64>;Expand description
A complex number made of two f64s (complex128).
Aliased Type§
#[repr(C)]pub struct c128 {
pub re: f64,
pub im: f64,
}Fields§
§re: f64The real part.
im: f64The imaginary part.
Trait Implementations§
Source§impl BufferElement for c128
impl BufferElement for c128
Source§impl Element for c128
impl Element for c128
Source§fn to_bits(self) -> u64
fn to_bits(self) -> u64
The bits of the real part in the low half and those of the
imaginary part in the high half (c128 has more bits than
fit, and panics).
Source§type Real = f64
type Real = f64
The type of the real and imaginary parts of a complex type, or the
type itself for other types (the type of
abs).Source§fn from_parts(re: f64, im: f64) -> Self
fn from_parts(re: f64, im: f64) -> Self
The complex number with the given parts (for other types than
complex, the real part; the imaginary part is ignored).
Source§fn from_value(v: Value) -> Self
fn from_value(v: Value) -> Self
Converts a value, with the semantics of XLA’s
convert (see
cast).Source§fn write_bytes(self, out: &mut Vec<u8>)
fn write_bytes(self, out: &mut Vec<u8>)
Writes the native-endian bytes of the value.
Source§fn read_bytes(bytes: &[u8]) -> Self
fn read_bytes(bytes: &[u8]) -> Self
Reads a value from native-endian bytes of the right length.