#[repr(C)]pub struct Complex64 {
pub re: f64,
pub im: f64,
}Expand description
Double-precision complex element. #[repr(C)] struct of two f64
fields — ABI-compatible with cuFFT’s cufftDoubleComplex, NumPy’s
complex128, and PyTorch’s torch.complex128. Sibling to
Complex32.
Fields§
§re: f64Real component.
im: f64Imaginary component.
Implementations§
Trait Implementations§
impl Copy for Complex64
impl DeviceRepr for Complex64
Source§impl Element for Complex64
Double-precision complex (interleaved real/imag pair of f64) as an
elementwise kernel input element. Sibling to Complex32; the
Scalar projection is f64.
impl Element for Complex64
Double-precision complex (interleaved real/imag pair of f64) as an
elementwise kernel input element. Sibling to Complex32; the
Scalar projection is f64.
Source§type Scalar = f64
type Scalar = f64
Scalar type used for the kernel’s alpha / beta parameters (and
the epilogue compute type).
f32 for f16/bf16/f32/F32Strict
— the epilogue runs at f32 to match the F32 accumulator. f64
for f64 — the DGEMM path uses an F64 accumulator and
f64 alpha/beta. For integer / Bool elements the projection
is nominally f32 (no α/β-scaled epilogue applies).Source§impl KernelDtype for Complex64
impl KernelDtype for Complex64
Source§const KIND: ElementKind = ElementKind::Complex64
const KIND: ElementKind = ElementKind::Complex64
Runtime tag for this dtype. Stable across the workspace —
keyed by this same enum in
crate::KernelSku::element.impl StructuralPartialEq for Complex64
Auto Trait Implementations§
impl Freeze for Complex64
impl RefUnwindSafe for Complex64
impl Send for Complex64
impl Sync for Complex64
impl Unpin for Complex64
impl UnsafeUnpin for Complex64
impl UnwindSafe for Complex64
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more