#[repr(C)]pub struct cuComplex {
pub x: f32,
pub y: f32,
}Expand description
ABI-compatible single-precision complex struct, matching cuComplex
from <cuComplex.h> (interleaved real/imag f32). Identical layout
to crate::cufftComplex and to the safe-side [Complex32] from
baracuda-kernels-types — a DeviceBuffer<Complex32> can be cast
to a *mut cuComplex for the cuSOLVER complex APIs without copy.
Fields§
§x: f32Real component.
y: f32Imaginary component.
Trait Implementations§
impl Copy for cuComplex
impl StructuralPartialEq for cuComplex
Auto Trait Implementations§
impl Freeze for cuComplex
impl RefUnwindSafe for cuComplex
impl Send for cuComplex
impl Sync for cuComplex
impl Unpin for cuComplex
impl UnsafeUnpin for cuComplex
impl UnwindSafe for cuComplex
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