Skip to content

Commit

Permalink
impl AsPtr for Vec<MaybeUninit<T>>
Browse files Browse the repository at this point in the history
  • Loading branch information
termoshtt committed Aug 31, 2022
1 parent 791713f commit 6e5b4b0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lax/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ pub use self::triangular::*;
pub use self::tridiagonal::*;

use cauchy::*;
use std::mem::MaybeUninit;

pub type Pivot = Vec<i32>;

Expand Down Expand Up @@ -150,6 +151,10 @@ impl_as_ptr!(f32, f32);
impl_as_ptr!(f64, f64);
impl_as_ptr!(c32, lapack_sys::__BindgenComplex<f32>);
impl_as_ptr!(c64, lapack_sys::__BindgenComplex<f64>);
impl_as_ptr!(MaybeUninit<f32>, f32);
impl_as_ptr!(MaybeUninit<f64>, f64);
impl_as_ptr!(MaybeUninit<c32>, lapack_sys::__BindgenComplex<f32>);
impl_as_ptr!(MaybeUninit<c64>, lapack_sys::__BindgenComplex<f64>);

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

0 comments on commit 6e5b4b0

Please sign in to comment.