Skip to content

Commit 6e5b4b0

Browse files
committed
impl AsPtr for Vec<MaybeUninit<T>>
1 parent 791713f commit 6e5b4b0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lax/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ pub use self::triangular::*;
100100
pub use self::tridiagonal::*;
101101

102102
use cauchy::*;
103+
use std::mem::MaybeUninit;
103104

104105
pub type Pivot = Vec<i32>;
105106

@@ -150,6 +151,10 @@ impl_as_ptr!(f32, f32);
150151
impl_as_ptr!(f64, f64);
151152
impl_as_ptr!(c32, lapack_sys::__BindgenComplex<f32>);
152153
impl_as_ptr!(c64, lapack_sys::__BindgenComplex<f64>);
154+
impl_as_ptr!(MaybeUninit<f32>, f32);
155+
impl_as_ptr!(MaybeUninit<f64>, f64);
156+
impl_as_ptr!(MaybeUninit<c32>, lapack_sys::__BindgenComplex<f32>);
157+
impl_as_ptr!(MaybeUninit<c64>, lapack_sys::__BindgenComplex<f64>);
153158

154159
/// Upper/Lower specification for seveal usages
155160
#[derive(Debug, Clone, Copy)]

0 commit comments

Comments
 (0)