pub type c64 = Complex<f32>;Expand description
A complex number made of two f32s (complex64).
Aliased Type§
#[repr(C)]pub struct c64 {
pub re: f32,
pub im: f32,
}Fields§
§re: f32The real part.
im: f32The imaginary part.
Trait Implementations§
Source§impl BufferElement for c64
impl BufferElement for c64
Source§impl Element for c64
impl Element for c64
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 = f32
type Real = f32
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: f32, im: f32) -> Self
fn from_parts(re: f32, im: f32) -> 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.